Created
August 7, 2014 10:44
-
-
Save Fatman13/f28e6a24d9702fad70c3 to your computer and use it in GitHub Desktop.
Striped (for long conf files)
This file contains hidden or 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
# 1. take out comments (starting with '#') | |
# 2. take out empty lines | |
grep -v '^#' my.conf | grep -v '^$' > stripped.my.conf | |
# credits http://ubuntuforums.org/showthread.php?t=2157515&p=12706474#post12706474 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment