How to remove line that begins with three #
For example need to delete all the following lines: from file
1 ### bla bla bal
2 ###blablabla
开发者_StackOverflow3 ### blabla
. . .
THX Yael
cat file | sed '/^###/d'
you can use awk as well
awk '!/^[ \t]*###/' file
精彩评论