group-by-date: Shell command for grouping files by dates into folders

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

This program is intended for grouping photography images by date into a hierarchy of date related folders.

If you have a folder of photographies, say photos, you may run

group-by-date -r photos

The program will emit a Bash script like this one:

mkdir -p 2017/2017-06/2017-06-28 && mv photos/0001.jpeg 2017/2017-06/2017-06-28
mkdir -p 2017/2017-06/2017-06-28 && mv photos/0002.jpeg 2017/2017-06/2017-06-28
mkdir -p 2017/2017-06/2017-06-28 && mv photos/0003.jpeg 2017/2017-06/2017-06-28

You can inspect the script and if you like it, you can run it:

group-by-date -r photos | bash

If you want a different command, say copying with preservation of modification time, you can call

group-by-date --command='cp -p' -r photos

Alternatively, you can run the actions immediately, that is, without a Bash script:

group-by-date --mode=move -r photos
group-by-date --mode=copy -r photos

You can also change the target directory structure using the --format option. You can list all options and default values using --help.

Attention: Media for photographies is often formatted with FAT. This may yield trouble with respect to timezones.

Properties

Versions0.0, 0.0.1, 0.1, 0.1.0.1, 0.1.0.2, 0.1.0.2
Change logNone available
Dependenciesbase (>=3 && <5), explicit-exception (==0.1.*), filemanip (>=0.3.5 && <0.4), hsshellscript (>=3.1.0 && <3.5), pathtype (==0.8.*), time (>=1.5 && <1.9), transformers (>=0.2 && <0.6), unix-compat (>=0.3 && <0.6), utility-ht (>=0.0.1 && <0.1) [details]
LicenseBSD-3-Clause
AuthorHenning Thielemann <haskell@henning-thielemann.de>
MaintainerHenning Thielemann <haskell@henning-thielemann.de>
CategoryConsole
Home pagehttp://hub.darcs.net/thielema/group-by-date/
Source repositorythis: darcs clone http://hub.darcs.net/thielema/group-by-date/ --tag 0.1.0.2
head: darcs clone http://hub.darcs.net/thielema/group-by-date/
Executablesgroup-by-date
UploadedTue Nov 7 08:46:41 UTC 2017 by HenningThielemann

Downloads

Maintainers' corner

For package maintainers and hackage trustees