Skip to content

Instantly share code, notes, and snippets.

@zackbraksa
Created February 18, 2015 03:55
Show Gist options
  • Save zackbraksa/24f424e80ce774570e1a to your computer and use it in GitHub Desktop.
Save zackbraksa/24f424e80ce774570e1a to your computer and use it in GitHub Desktop.
#!/bin/bash
find . -name "*.${1}" | while read fname
do
mv $fname "${fname/.${1}}.$2"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment