Posted in Command Line, Linux, Perl Remove Empty Lines and Comments Binny V A February 12, 2008 Leave a Comment on Remove Empty Lines and Comments Remove comments and blank lines from example.pl sed '/ *#/d; /^$/d' example.pl Author: Binny V AA philosopher programmer who specializes in backend development and stoicism.