Created
March 8, 2022 16:33
-
-
Save iamcryptoki/3b79ae3f52b638c36ccbe118cb02ff9f to your computer and use it in GitHub Desktop.
Change multiple file extensions in 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 file in *.ext1; do mv -- "${file}" "${file/%ext1/ext2}"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment