Randomize filenames
This is a simple bash script to create random filenames of all jpg-files (*.jpg) in a folder using the linux commands mv, sha1sum and cut. #!/bin/bash # Randomize filenames for fname in *.jpg; do mv “$fname” $(echo “$fname” | \ sha1sum | \ cut -f1 -d ‘ ‘ | \ cut -b 1-5).jpg done The […]