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

  • From: bala150985@xxxxxxxxx (Balasubramaniam Natarajan)
  • Date: Fri, 27 Jul 2012 02:41:24 -0400

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/

Other related posts: