Skip to content

Instantly share code, notes, and snippets.

@SeanPlusPlus
Created April 19, 2011 19:20
Show Gist options
  • Save SeanPlusPlus/929346 to your computer and use it in GitHub Desktop.
Save SeanPlusPlus/929346 to your computer and use it in GitHub Desktop.
appends '.jpg' to a set of files in a directory
\ls *-jpg | awk '{print "mv", $1, $1".jpg"}'
\ls *-jpg | awk '{print "mv", $1, $1".jpg"}' | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment