Bash Script: Auto-Rename Long Filenames

A truly final update has been made to the rename script, which combines it with the move script.

Now that I fully trust the script is not deleting any files, I’ve fully employed it to work on my Downloads directory. This means it no longer moves media files from the Downloads directory before renaming.

Instead, it renames all media files in the Downloads directory, then every 99 minutes, it moves only video files to another directory, while performing another rename if a duplicate filename is found in the destination directory.

The full explanation and usage has also been updated accordingly. Read that for details.
Like the AI keeps saying, “Happy scripting!” :grin:

PS: If someone prefers one of the older iterations of the script, just click the “Edit History” button at the top of the original post. They are still available.


1 Like