jasonrm / hashname

Rename files to their hash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hashname

❯ hashname --help
Usage:
  hashname [OPTIONS] [FILE ...]

Rename files to their hash

Positional arguments:
  file                  Files to process

Optional arguments:
  -h,--help             Show this help message and exit
  -d,--dry-run          Do not actually rename files
  -f,--force-rehash     Process the file even if it looks like it has already
                        been processed
  -F,--force-rename     Rename file even there is another file with the same
                        result name
  -o,--output-dir OUTPUT_DIR
                        Renamed files are moved to this directory
  -c,--copy             Copy files to new name instead of moving
  -v,--verbose          Print more information during processing
  -V,--version          Print version and exit

Examples

hashname --dry-run doc1.pdf game.iso img.png
hashname --dry-run '*.pdf'
hashname --dry-run --output-dir ./hashed/ '*.png'

About

Rename files to their hash

License:Do What The F*ck You Want To Public License


Languages

Language:Rust 81.2%Language:Nix 18.8%