Created
December 17, 2015 10:23
-
-
Save patforna/bb3d08a1e70504ccf8c3 to your computer and use it in GitHub Desktop.
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 | |
grep -rh '@mixin' web/public/css | cut -d' ' -f2 | egrep -o '^[a-z\-]+' > /tmp/mixins | |
for mixin in `cat /tmp/mixins`; do | |
echo --- $mixin | |
grep --exclude mixin.names -ri "@include $mixin" web/public/css | grep -v '//' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment