Created
August 17, 2015 16:32
-
-
Save ebouchut/4ba7d62aa310b0266a94 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
# Remove comment that spans a whole line (like this one) | |
# and comments at the end of a line like the following | |
: echo "Hello" # comment at the end of a line | |
sed -e 's/#.*$//g' -e '/^[ \t]*$/d' file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment