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

    awk and line numbering

    thanks to both of you. it worked. I appreciate your help.
  2. kaanlu

    awk and line numbering

    futurelet => I got ksh: syntax error: `(' unexpected error. Yes, first line is the batch header info.I used the same code. PHV=> I still do not get the line number at the end. Input file: This is batch header info: $$$BRS133010305BRS ACCT FEED * 0009709772683404...
  3. kaanlu

    awk and line numbering

    PHV=> Server is down. I will test it first thing tomorrow morning and post the result here. Pls check my reply again tomorrow morning. Thanks. Futurelet=> I will test yours tomorrow too. Thanks for your input.
  4. kaanlu

    awk and line numbering

    PHV=> Sorry same result. I see the sequencial numbers at seperate lines again. Maybe I should try to put the sequencial numbers into empty fields in each line like somewhere between 77th and 81th fields. Maybe adding the numbers at the end of record does not work!
  5. kaanlu

    awk and line numbering

    PHV => Thanks but this creates sequencial number at a seperate line. I want to add this number at the end of each line. This is the output of your command. 1 0610401001410 ...... 367133 0905001800 J3 05 I want this number (1,2,3) at the end of each line like 0610401001410 ...
  6. kaanlu

    awk and line numbering

    PHV => {print substr(print substr($0,1,24) digits substr($0,25,29) point substr($0,54) NR} did not work. I goy "illegal statement, syntax error message.
  7. kaanlu

    awk and line numbering

    Hi, I have an awk command that modifies the raw batch file.I would like to add a command to insert a unique sequencial number at the end of each line in the batch file. Does any one know how I can achieve it or what command I need to use? Here is the awk command : $awk ' 1==NR {digits =...
  8. kaanlu

    replace column with another column data sed/awk

    Thanks a lot to both of you. I appreciate your help. Kaan
  9. kaanlu

    replace column with another column data sed/awk

    Hi, I have a batch file in which the first line is the batch header info and the rest is dataline records. I want to get the 14th and 15th fields from the first line and add those two digits after 24th field of every dataline in the batch. $$$BRS133010305BRS ACCT FEED * NM05...

Part and Inventory Search

Back
Top