Last active
February 26, 2018 16:04
-
-
Save sagax/caa490ebe6fdfd94182aa51f0415cd20 to your computer and use it in GitHub Desktop.
zip awk code to one line
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
{ | |
gsub(/^\s+/, "", $0); | |
gsub(/\s+=\s+/, "=", $0); | |
gsub(/if\s+/, "if", $0); | |
gsub(/\s+\|\|\s+/, "||", $0); | |
gsub(/\)\s+{/, "){", $0); | |
gsub(/}\s+/, "}", $0); | |
gsub(/\s+{/, "{", $0); | |
gsub(/\s+\(/, "(", $0); | |
printf("%s", $0); | |
} | |
END { | |
print "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment