Created
January 22, 2020 07:03
-
-
Save icaoberg/781d03e10f55d8ded8ad5259b56b9a3c to your computer and use it in GitHub Desktop.
[UTILITIES] Random rename
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
shopt -s nullglob | |
FILE=$1 | |
if [ -f $FILE ]; then | |
mv -v "$FILE" $(uuidgen).${FILE##*.} | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment