Created
September 18, 2015 04:37
-
-
Save lantrix/467350972bfc72d90fe7 to your computer and use it in GitHub Desktop.
rename many files with different extensions in bash
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//_/-}"; done | |
| for f in *_*; do echo mv "${f}" "NewPrefix${f/OldPrefix/}"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment