This is really a unix question, but I thought I'll ask it here, in case
there is a perl tool to do the same:

Is there an (easy) way of doing a grep with a 'context', i.e. grep will
provide the previous N & next M lines for every line that matches the
pattern (where N & M are arguments to the command)?

Thanks,

-Nilanjan

Reply via email to