Skip to content

WindomZ/uniname

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uniname - Unique Name

A CLI tool - Rename file to unique name quickly

Build Status Go Report Card PRs Welcome

Usage

Usage:
  uniname [-r] [--sha1|--sha256|--sha512] <input file>
  uniname [--sha1|--sha256|--sha512] <input file> -d <output directory>

Example:
  uniname -r foo.png
  uniname -r --sha256 foo.png
  uniname --sha512 foo.png -d foo/images

Optional flags:
  -d string
        rename to the specified directory
  -h    print help
  -md5
        using md5sum (default true)
  -r    rename the input file
  -sha1
        using sha1sum
  -sha256
        using sha256sum
  -sha512
        using sha512sum
  -v    print version

Examples

uniname -r foo.png                    # md5sum, rename file.
uniname -r --sha1 foo.png             # sha1sum, rename file.
uniname --sha256 foo.png              # sha256sum, do nothing.
uniname --sha512 foo.png -d ./images  # sha512sum, create file to ./images.

Install

If you have a Golang environment:

go get -u github.com/WindomZ/uniname

Or download the latest binary release

Changelog

See CHANGELOG.md

Contributing

Welcome to pull requests, report bugs, suggest ideas and discuss, i would love to hear what you think on issues page.

If you like it then you can put a ⭐ on it.

License

MIT