Created
September 2, 2015 06:37
-
-
Save diskshima/2815694394268be4e92b to your computer and use it in GitHub Desktop.
Shell script to rename .css.scss to .scss
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
#! /usr/bin/env bash | |
for f in $(find . -type f -iname '*.css.scss'); do | |
renamed=$(echo "${f}" | sed 's/.css.scss$/.scss/g') | |
cmd="git mv ${f} ${renamed}" | |
echo $cmd | |
eval $cmd | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment