Created
April 25, 2018 01:45
-
-
Save MrThiago/596aa7cced42f193a08b6e3f3de83870 to your computer and use it in GitHub Desktop.
Shell batch rename
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
Remane as removing (_iphone) | |
for i in *.png ; do mv "$i" "${i/_iphone*.png/.png}" ; done | |
Rename adding (android_) | |
for file in images*.png; do mv "$file" "android_$file"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment