Skip to content

Instantly share code, notes, and snippets.

@phg1024
Created May 19, 2017 01:19
Show Gist options
  • Save phg1024/85ae7e294b92cd5f44298d8be8fe135f to your computer and use it in GitHub Desktop.
Save phg1024/85ae7e294b92cd5f44298d8be8fe135f to your computer and use it in GitHub Desktop.
# regularize filenames
for f in `ls *.png`; do
echo $f
filename=`echo "$f" | cut -d'.' -f1`
echo $filename
mv $f $filename.png
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment