Remove Empty Lines and Comments
Tagged with: comments, commnad, delete, Linux, sed
Remove comments and blank lines from example.pl
sed '/ *#/d; /^$/d' example.pl
Remove comments and blank lines from example.pl
sed '/ *#/d; /^$/d' example.pl
This entry was posted on Tuesday, February 12th, 2008 at 11:27 pm and is filed under Command Line, Linux, Perl. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.