Last active
February 26, 2017 15:36
-
-
Save fedir/5993902 to your computer and use it in GitHub Desktop.
Strip Vagrantfile from comments and empty lines
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
#!/bin/bash | |
cat Vagrantfile | grep -vE '(^[[:space:]]*($|(#|!|;|//)))' | |
cat Vagrantfile | grep -vE '(^[[:space:]]*($|(#)))' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment