3

Tip #358   Random mass-rename

Assign random names to all files in a folder (including subfolders!):

find . -type f -exec bash -c 'mv "$1" "./$RANDOM"' - {} \;


Note that this is a somewhat expensive operation, so it might take a few seconds for large numbers of files.