How do I select only the lines those start with any digit or "** SETTLE" word with a few stars? Following will return the lines starting with number but do not return the lines with the word SETTLE开发者_运维百科.
# cat somefile.txt | egrep "(^[0-9]|'^*************** SETTLE ')"
egrep "^(([0-9])|([*]{3,} SETTLE))"
$ egrep '^([0-9]|\**+ SETTLE )' somefile.txt
精彩评论