Skip to content

Instantly share code, notes, and snippets.

@diskshima
Created September 2, 2015 06:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diskshima/2815694394268be4e92b to your computer and use it in GitHub Desktop.
Save diskshima/2815694394268be4e92b to your computer and use it in GitHub Desktop.
Shell script to rename .css.scss to .scss
#! /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