Rename files in bulk

I want to do something from “tinfoil hat” (in fact no, i just almost got caught on copying files because of the file name (please, do not ask why i need to hide this)).

Does anyone know how to make all selected files (preferably only pics, vids and docs) automatically clean all metadata and rename to something random like 0000-aaaaa-bbbb-cccccc-1111.png?

I know about Metadata cleaner with gui, I use it. But I’m interested in quick renaming of selected files in the directory. Preferably also by keyboard shortcut.

Can anyone help with this?

If you use KDE, you can do this with krename

1 Like
i=0; for f in *.png; do new_name=$(printf "%04d.png" "$i"); mv "$f" "$new_name"; ((i++)); done

if you want to remove the meta try ffmpeg with for loop and -map_metadata -1

1 Like