That's brilliant, that works really well. Thanks a lot. I have been trying for ages to get the tag and value out correctly.
Would you be able to help me with a loop that for each JOBID it would get the value of the corresponding TYPE* value and FILE* value and print this info on one line of output.
So the first line of output would be:
12345 101 add /tmp/file_data_gros
Then the loop moves onto find the next JOBID and the values for the associated TYPE* and FILE. The next line printed would be:
12345 102 delete /tmp/file_myvalues
And will continue to do this until all JOBID's and associated TYPE*s and FILE*s have been processed in the file