开发者

using OR in egrep

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜