Strip comments from a file
This one liner will remove all text after the # character in a file
cat file-with-comments | sed -e 's;#.*;;' -e '/^[ ]*$/d'
cat file-with-comments | sed -e 's;#.*;;' -e '/^[ ]*$/d'
No comments yet.
RSS feed for comments on this post. TrackBack URL