Skip to content

Instantly share code, notes, and snippets.

@jiceb
Created October 24, 2014 15:40
Show Gist options
  • Save jiceb/e510d12f0426da659f32 to your computer and use it in GitHub Desktop.
Save jiceb/e510d12f0426da659f32 to your computer and use it in GitHub Desktop.
os x terminal batch image file rename
# dry run
for f in *.png; do echo mv "$f" "prefix_$f"; done
# for real now
for f in *.png; do mv "$f" "prefix_$f"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment