PDA

View Full Version : [ubuntu] search command help



anandnz
May 25th, 2010, 08:33 AM
Hi experts,

Looking for a command ( ack, sed, grep or combination)

best way to find a string or combination of strings in a files ( *.c or *.h) with option to display 1-4 lines below the line, with in the directory and sub directories. It should display line numbers and path of the file as well. The combination of strings should be in 1-3 lines which is a option.

Can anyone help me.

Cheers
Anand

anandnz
May 26th, 2010, 09:48 PM
Any guru who could help me please ...