Skip to content

Instantly share code, notes, and snippets.

@kulor
Created May 23, 2012 10:22
Show Gist options
  • Save kulor/2774458 to your computer and use it in GitHub Desktop.
Save kulor/2774458 to your computer and use it in GitHub Desktop.
Change a list of filenames
for i in `find *.png`; do echo mv $i `echo $i | sed 's/\([0-9]*\).*\.png/\1.png/'`; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment