Created
November 2, 2020 02:51
-
-
Save mvidaldp/f1388eb24478d05b7d6b3fafb5d08888 to your computer and use it in GitHub Desktop.
Rename all extensions of the files from a folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in *.old; do | |
mv -- "$f" "${f%.old}.new" | |
done | |
# source: https://unix.stackexchange.com/a/19656 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment