Search Results

Search: Posts Made By: pone2332
1,380
Posted By pone2332
Pravin27, I changed the print to $2 and it...
Pravin27,
I changed the print to $2 and it worked. Not sure why "TRAILER.1+0000007+1" it would be position $2?

tail -1 FBOC810G_140305.CSV | awk -F[\"\.] '{print $2}'
TRAILER
1,380
Posted By pone2332
Its not printing TRAILER. No error. $...
Its not printing TRAILER. No error.

$ ./james.sh
tail -1 FBOC810G_140305.CSV | awk -F["\.] '{print }'
1,380
Posted By pone2332
This code didn't work. Can you help me understand...
This code didn't work. Can you help me understand from -F [\"\.]
tail -1 filename | awk -F[\"\.] '{print $1}'
1,380
Posted By pone2332
This works perfectly. Can you help me understand...
This works perfectly. Can you help me understand this piece a little more for learning sake? Thanks much for all help.
awk -F. '{sub("\"","");print $1}'
1,380
Posted By pone2332
How to extract work in line string.?
Hello all,

Soon I will be receiving a new file. I've asked the source system to put "TRAILER.1+0000007+1" for the trailer to indicate full receipt of file. I need to know how to separate TRAILER...
2,219
Posted By pone2332
Updated code: Let me know if that is better or if...
Updated code: Let me know if that is better or if I'm getting closer.

HDR File:
A: Cat /apps/fmp/ftp/Incoming/FPRS/FPRS/TEST.QDIA_TRIG_HDR* <pipe> to
B: awk '{print $2}' <pipe> integer to
C: ...
2,219
Posted By pone2332
Expectation: Note: I took the exiting logic...
Expectation:

Note: I took the exiting logic from other scripts so want to see what other options I have and if this is a clean approach.

First- I would like to parse the HDR file an grab the...
2,219
Posted By pone2332
Compare file1 header count with file2 line count
What I'm trying to accomplish. I receive a Header and Detail file for daily processing. The detail file comes first which holds data, the header is a receipt of the detail file and has the detail...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 03:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy