Skip to content

muniere/foordinate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

foordinate

Utility commands to arrange files with Crystal (http://crystal-lang.org/)

Requirements

Installation

Homebrew

$ brew install muniere/triv/foordinate

Manual

# clone
$ git clone git@github.com:muniere/foordinate.git

# install
$ cd foordinate
$ ./configure --prefix=/usr/local
$ rake && rake install

# or only link
$ rake && rake link

Usage

Count entries in directory

# default
$ count dir1 dir2 dir3

# filter with pattern
$ count --pattern="*.txt" dir1 dir2 dir3

# include hidden files
$ count --all dir1 dir2

Numberize filenames

# default
$ numberize *.jpg

# with options
$ numberize --start=1234 --length=4 --prefix="image_" *.jpg

# dry run
$ numberize -n *.jpg

Randomize filenames

# default
$ randomize *.jpg

# with options
$ randomize --length=5 --prefix="image_" *.jpg

# dry run
$ randomize -n *.jpg

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages