mirror of
https://github.com/bytedream/scripts.git
synced 2025-05-09 20:25:12 +02:00
20 lines
543 B
Markdown
20 lines
543 B
Markdown
## Hashify Filename
|
|
|
|
This little script renames given files to its [MD5](https://en.wikipedia.org/wiki/MD5) hashsum. File extension won't be changed.
|
|
This allows duplicate files in the same directory to be easily detected and merged / overwritten.
|
|
|
|
This script is just a fork of [randomize-filename](../randomize-filename).
|
|
|
|
|
|
#### Arguments
|
|
|
|
The can take one extra argument
|
|
|
|
`-r` - recursive: If any directory where given while calling this command, all files in it will be renamed recursively.
|
|
|
|
#### Usage
|
|
|
|
```
|
|
$ hashify-filename.sh -r .
|
|
```
|