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