Add filename randomizer function
This commit is contained in:
parent
41717d031d
commit
3be8d8d595
1 changed files with 10 additions and 0 deletions
10
.aliases.sh
10
.aliases.sh
|
@ -53,6 +53,16 @@ function upload_all() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function randomize_filenames() {
|
||||||
|
for X in *; do
|
||||||
|
if [ -f "$X" ]; then
|
||||||
|
EXT="${X##*.}"
|
||||||
|
FILENAME=$(cat /dev/urandom | tr -cd 'a-f0-9' | head -c 16)
|
||||||
|
mv --no-clobber --verbose "$X" "$FILENAME.$EXT"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
alias remove_exif="mogrify -verbose -strip *.jpg"
|
alias remove_exif="mogrify -verbose -strip *.jpg"
|
||||||
|
|
||||||
alias tf2="steam -applaunch 440 -noborder -windowed -w 1920 -h 1080 +fps_max 240"
|
alias tf2="steam -applaunch 440 -noborder -windowed -w 1920 -h 1080 +fps_max 240"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue