10-02-2011 12:58 PM
I have a file..my aim is to:
1. Search for the line containing a particular expression
2. Grab 3 lines above that expression
3. Grab 5 lines below that expression
Please let me know how can this be achieved?
Many a thanks..
Solved! Go to Solution.
10-02-2011 03:25 PM
You can roll your own or you can use a GNU 'grep'. See here for some ways to build your own:
See here for a GNU 'grep':
If you chose to use the Porting Centre's offering, be sure to install the dependencies. This is easily done by first installing the 'depothelper' from there.
10-05-2011 12:46 PM
Also installed the GNU grep and its dependencies. That works like wow..