Skip to content

Instantly share code, notes, and snippets.

@cahva
Created February 7, 2022 09:41
Show Gist options
  • Save cahva/ca6f69c79c1be01503d86925bdf01060 to your computer and use it in GitHub Desktop.
Save cahva/ca6f69c79c1be01503d86925bdf01060 to your computer and use it in GitHub Desktop.
Shell script to rename files to another extension in git
#/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