Created
February 7, 2022 09:41
-
-
Save cahva/ca6f69c79c1be01503d86925bdf01060 to your computer and use it in GitHub Desktop.
Shell script to rename files to another extension in git
This file contains 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 | |
for i in $(find . -iname "*.jade"); do | |
git mv "$i" "$(echo $i | rev | cut -d '.' -f 2- | rev).pug"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment