group-by-date: Shell command for grouping files by dates into folders
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 cp
, you can call
group-by-date --command=cp -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.
Downloads
- group-by-date-0.0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.0, 0.0.1, 0.1, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.0.5 |
---|---|
Dependencies | base (>=3 && <5), directory (>=1.2 && <1.3), explicit-exception (>=0.1 && <0.2), filemanip (>=0.3.5 && <0.4), filepath (>=1.3 && <1.4), hsshellscript (>=3.1.0 && <3.4), old-locale (>=1.0 && <1.1), time (>=1.4 && <1.5), transformers (>=0.2 && <0.6), unix-compat (>=0.3 && <0.5), utility-ht (>=0.0.1 && <0.1) [details] |
Tested with | ghc ==7.8.3 |
License | BSD-3-Clause |
Author | Henning Thielemann <haskell@henning-thielemann.de> |
Maintainer | Henning Thielemann <haskell@henning-thielemann.de> |
Revised | Revision 1 made by HerbertValerioRiedel at 2017-03-26T12:08:05Z |
Category | Console |
Home page | http://hub.darcs.net/thielema/group-by-date/ |
Source repo | this: darcs get http://hub.darcs.net/thielema/group-by-date/ --tag 0.0 head: darcs get http://hub.darcs.net/thielema/group-by-date/ |
Uploaded | by HenningThielemann at 2017-03-26T10:32:15Z |
Distributions | LTSHaskell:0.1.0.5, NixOS:0.1.0.5, Stackage:0.1.0.5 |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Executables | group-by-date |
Downloads | 4755 total (15 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs not available [build log] All reported builds failed as of 2017-03-26 [all 2 reports] |