Mass File Rename
Posted by robert on Feb 25, 2022 in Uncategorized
Every so often I have the need to rename a massive amount of files. This generally happens when there is a pattern in the name and I need to change it to a different pattern.
There are a number of ways to do this, but I often use the following short script to do it. Simply modify the patterns to fit the current need.
# A little script to perform a mass renaming of files. # Adjust accordingly. for file in [0-3][0-9].md; do echo git mv "$file" "2022.02.$file" done
You must be logged in to see the comments. Log in now!