Thanks this works but the output changes the format of the file.
I had
TRX111161500 0365A12005090201 355 PMD D 2C 20050900 724 FDJ 00000000002222+00001K DB01C 4 2 DB0C
-890 000779TES Q AS A9994 RTH S1CAL 00000000000110- 1...
I am new and have a data file with the 16th column as
0000779TES and have 1000 records
0000779TES
0000779TES
0000779TES
0000779TES
I want to change it to
0000100TES
0000101TES
0000102TES
.
.
.
0000998TES
0000999TES
How can I replace it with increment from 779 to 100,101,102,...
Thanks
I have a transform.bat which converts 1 line of input text to FIXML format.
How do I use this in a awk or in a loop to convert 1000 lines of input text to FIXML format output file.
TRX100 A 100 212 200414 ->infile.txt
transform.bat infile.txt
Output is infile.txt.transform
<FIXML>...
I am new to awk and I have a FIXML file that I want to search a string and replace with a counter. Here is the file.
<FIXML> <TrdCaptRpt AvgPxInd="1" RptID="40104" LastQty="15" LastPx="2910" TrdDt="2005-04-19" TxnTm="2005-05-17T10:30:00" TransTyp="0" RptTyp="0" </FIXML>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.