Skip to content

Instantly share code, notes, and snippets.

@imom0
Created May 7, 2012 08:14
Show Gist options
  • Save imom0/2626615 to your computer and use it in GitHub Desktop.
Save imom0/2626615 to your computer and use it in GitHub Desktop.
rename png files
#!/bin/bash
count="1"
for i in *.png; do
mv "$i" "${count}".png;
count=`expr $count + 1`;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment