Hello, I have a text file that looks like this on Linux: --------------------------------------- ^M 01:23:00 ^M 23 Oct. 2001 Bobo Permitted ^M
I need to filter records based a name (Bobo), but also need the line that is two lines above. For example, I can do: # more Log_October_2001 | grep Bobo This will give me 22 records for example, anyone know how I can also see the line that also has the time stamp? i.e., two lines above, so I can get the following output: 01:23:00 23 Oct. 2001 Bobo Permitted Many thanks!! Robert
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
