Help is really needed .. i did awk a long time ago at Uni and therefore think what im trying to acheive is possible, but know that my awk skills are now non existant!
Basically, Im doing a grep of a file at the moment, which outputs each line with the text. What I want it to do is also output the preceeding 1 or 2 lines to the sucessful search?
Anyone fancy the challenge?
Many thanks in advance,
John.
Cheers
John (Sudmill)
Basically, Im doing a grep of a file at the moment, which outputs each line with the text. What I want it to do is also output the preceeding 1 or 2 lines to the sucessful search?
Anyone fancy the challenge?
Many thanks in advance,
John.
Cheers
John (Sudmill)