Skip to content

Instantly share code, notes, and snippets.

@iamcryptoki
Created March 8, 2022 16:33
Show Gist options
  • Save iamcryptoki/3b79ae3f52b638c36ccbe118cb02ff9f to your computer and use it in GitHub Desktop.
Save iamcryptoki/3b79ae3f52b638c36ccbe118cb02ff9f to your computer and use it in GitHub Desktop.
Change multiple file extensions in a folder.
$ 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