sed -e 's/#.*//' -e 's/[ ^I]*$//' -e '/^$/ d' filename
Pretty nice post. I just came by your blog and wanted to say that I’ve really liked reading your posts. Any way I’ll be subscribing to your feed and I hope you write again soon!
Powered by WordPress
Remove comments and empty lines on linux using sed command