Skip to content

Instantly share code, notes, and snippets.

@ryanburnette
Last active March 15, 2019 15:48
Show Gist options
  • Save ryanburnette/0dc72e37ae3c2ea3af91 to your computer and use it in GitHub Desktop.
Save ryanburnette/0dc72e37ae3c2ea3af91 to your computer and use it in GitHub Desktop.
Convert all .scss to .sass in the current directory, or vice versa.
#!/usr/bin/env bash
for file in *.sass
do
sass-convert -F sass -T scss $file `echo $file | sed s/.sass/.scss/g`;
done
rm *.sass
#!/usr/bin/env bash
for file in *.scss
do
sass-convert -F scss -T sass $file `echo $file | sed s/.scss/.sass/g`;
done
rm *.scss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment