Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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