Created
September 30, 2021 20:42
-
-
Save 1gg/600e2474d7cb4e47c80f09681e195cf9 to your computer and use it in GitHub Desktop.
bash batch replace in filenames
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 *; do echo mv \'"$f"\' \'"${f/mp4/pdf}"\'; done | |
for f in *; do echo mv \'"$f"\' \'"${f/pdf/mp4}"\'; done | |
for f in *; do mv \'"$f"\' \'"${f/pdf/mp4}"\'; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment