{
line = $0
while (match(line, /^(.*)spacing\(([0-9\.]+)\)(.*)$/, groups)) {
line = groups[1] "SPACING(" (groups[2] * 2) ")" groups[3]
}
gsub(/SPACING/, "spacing", line)
print line
}
-
-
Save chriseppstein/57ca98ccefd642ce009d50f45998774d to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Amazing! Thanks :)
This works for executing it on all
.scss
files in the current directory.