Skip to content

Instantly share code, notes, and snippets.

@edenwaith
Created January 5, 2014 02:12
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 edenwaith/8263405 to your computer and use it in GitHub Desktop.
Save edenwaith/8263405 to your computer and use it in GitHub Desktop.
Quick batch file rename from the command line
ls foo*.jpg | awk '{print("mv "$1" "$1)}' | sed 's/foo/bar/2' | /bin/sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment