[Ilugc] Grep two lines from text file with different A and B switch

Balasubramaniam Natarajan bala150985 at gmail.com
Fri Jul 27 12:11:24 IST 2012


On Fri, Jul 27, 2012 at 1:10 AM, Shakthi Kannan <shakthimaan at gmail.com>wrote:

>
>
> Tried the following?
>
>   $ grep -A1 -e "MD5" -A2 -e "Network Activity" */reports/report.txt*
>
>
Exactly what I was looking for Thanks Shakthi :-)

-- 
Regards,
Balasubramaniam Natarajan
www.etutorshop.com/moodle/


More information about the ilugc mailing list