i.e, here the pattern line is the one starts with "Processing Item is:" which has the string/number in square bracket at the end. i want to grep the string/number and put it in the next few lines until next pattern line starts. once the next pattern line comes, grep the number/string from that new pattern line and add it to the below lines until next pattern line is reached and so on..
Last edited by Scrutinizer; 06-18-2012 at 04:03 AM..
Reason: code tags