Utility commands to arrange files with Crystal (http://crystal-lang.org/)
- Crsytal >= 0.31.0
$ brew install muniere/triv/foordinate
# clone
$ git clone [email protected]:muniere/foordinate.git
# install
$ cd foordinate
$ ./configure --prefix=/usr/local
$ rake && rake install
# or only link
$ rake && rake link
# default
$ count dir1 dir2 dir3
# filter with pattern
$ count --pattern="*.txt" dir1 dir2 dir3
# include hidden files
$ count --all dir1 dir2
# default
$ numberize *.jpg
# with options
$ numberize --start=1234 --length=4 --prefix="image_" *.jpg
# dry run
$ numberize -n *.jpg
# default
$ randomize *.jpg
# with options
$ randomize --length=5 --prefix="image_" *.jpg
# dry run
$ randomize -n *.jpg