News
Centre of news

Filter uncommented lines

This will only print out the uncommented lines in source file.

Example

$ cat /etc/rc.d/rc.local | sed ‘/ *#/d; /^ *$/d’


Leave a Comment

You must be logged in to post a comment.