Skip to content

Instantly share code, notes, and snippets.

@leemour
Last active February 14, 2018 12:13
Show Gist options
  • Save leemour/bb7721c83b1f996cfc7c96dcbac812b3 to your computer and use it in GitHub Desktop.
Save leemour/bb7721c83b1f996cfc7c96dcbac812b3 to your computer and use it in GitHub Desktop.
Change file extensions. Change from .css.scss to .scss
find app/assets/stylesheets -name "*.css.scss" -exec rename 's/\.css.scss$/.scss/' '{}' \;
#!/bin/sh
for file in $(find ./app/assets/stylesheets/ -name "*.css.scss")
do
git mv $file `echo $file | sed s/\.css//`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment