Rename multiple files on shell
To rename multiple files in the current folder, you can use the following command: $> # rename: $> for f in Sheldon_*.xml; do mv -n “$f” “${f}_bkp”; done $> # rename it back again: $> for f in Sheldon_*.xml_bkp; do mv -n “$f” “${f/_bkp}”; done In this case, I had a bunch of files that […]