25 May
2009
25 May
'09
00:36
On Sunday May 24 2009, Chuck Payne wrote:
Guys,
A question. I been trying to figure out how to get the out put I want. I got a log that I am do a grep on statement mykeyword, but I to get it and the line that follows. I been doing a search now for how to do this on google, but no luck. Is there a way of doing this, or do I need to use grep.
Sed suffices: % sed -n -e '/TargetPattern/,+1p' The sed default is simple REs. Extended REs (alternation, bounded closure, parens group by default) are available with the -r option. Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org