Skip to content

Instantly share code, notes, and snippets.

@MrThiago
Created April 25, 2018 01:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrThiago/596aa7cced42f193a08b6e3f3de83870 to your computer and use it in GitHub Desktop.
Save MrThiago/596aa7cced42f193a08b6e3f3de83870 to your computer and use it in GitHub Desktop.
Shell batch rename
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