Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. dbehera

    Increment a field.

    This should work but i am getting a syntax error. Not able to figure out why. awk: syntax error near line 1 awk: illegal statement near line 1
  2. dbehera

    Increment a field.

    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...
  3. dbehera

    Increment a field.

    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
  4. dbehera

    Run an executable .bat from an awk

    yes ... one line into a file and then pass that file to a batch file.
  5. dbehera

    Run an executable .bat from an awk

    The transform.bat calls java program someone else wrote. I am just using it.
  6. dbehera

    Run an executable .bat from an awk

    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>...
  7. dbehera

    AWK Search and replace with count

    The while loop actually works better. Thanks guys. I was trying to use a sed in a awk and did not work.
  8. dbehera

    AWK Search and replace with count

    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>...

Part and Inventory Search

Back
Top