Posted by: sangfroid June 6, 2007
SHELL SCRIPT HELP...
Login in to Rate this Post:     0       ?        
you don't even need cat here... simply do like this grep -A m -B n "search pattern" filename where m is the no. of lines after it and n is the no. of lines before it.. hope this helps ...
Read Full Discussion Thread for this article