evolving all we are
2012年11月21日星期三
In UNIX grep a phrase and adjacent lines
http://www.experts-exchange.com/OS/Linux/Q_26606094.html
grep -A2 SELECT
That will return the line matching and the next two lines, found the answer here -
http://linux.byexamples.co
m/archives
/304/grep-
multiple-l
ines/
You can also do
grep -A2 -i select
so it matches upper or lower case (-i is ignore case)
没有评论:
发表评论
较新的博文
较早的博文
主页
订阅:
博文评论 (Atom)
没有评论:
发表评论