Skip to content

Instantly share code, notes, and snippets.

@reidransom
Created August 24, 2011 16:17
Show Gist options
  • Save reidransom/1168431 to your computer and use it in GitHub Desktop.
Save reidransom/1168431 to your computer and use it in GitHub Desktop.
Batch rename with bash
for i in * ; do
echo mv \"$i\" \"$i.mp3\" | sh
done
for (( c=1; c<=5; c++ ))
do
mv $c.jpeg $c.jpg
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment