I have a file in which the data is like below,
01,0000000,xxxxxxx/
02,xxxxxxxx,yyyyyy/
03,test1,41203016,,/
01,0000000,xxxxxxx/
02,xxxxxxxx,yyyyyy/
03,test2,41203017,,/
01,0000000,xxxxxxx/
02,xxxxxxxx,yyyyyy/
03,test3,41203018,,/
I will not be knowing what values will be there In the file for test1,test2 and test3. I know that it will be in the line starting with 03 and also I have to dynamically derive the replace strings based on test string.
Is there a way to do this in unix? Is yes, please provide the command.