Created
August 11, 2016 09:41
-
-
Save a7madgamal/697ce9854ea3894facc740eddbcc6182 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| fromExt=".jade" | |
| toExt=".pug" | |
| for file in $(find . -name '*'$fromExt); | |
| do | |
| mv -i -v "$file" "${file%$fromExt}$toExt" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment