I have a report that I am beating my head against a wall about to get parsed correctly.
I has variable length data after colons and the data is in blocks.
Name: John Addr1: x way PBL: Y ON CD: N
Exp DATE: 000000 Enr Date: 000000 Ded Dtn: 40402
Addr2: LNAME: Van Risen
etc. . .
then new block begins.
I can parse it into separate files using grep or awk, easier with grep. Then concatenate and take out unwanted data. OR! I can get an all inclusive solution with awk, something i've not been able to do given the variable length of spaces AND field names AND data. So $1 and $2 and $3 have little meaning until I can do something with this file.
Any help is appreciated.
I has variable length data after colons and the data is in blocks.
Name: John Addr1: x way PBL: Y ON CD: N
Exp DATE: 000000 Enr Date: 000000 Ded Dtn: 40402
Addr2: LNAME: Van Risen
etc. . .
then new block begins.
I can parse it into separate files using grep or awk, easier with grep. Then concatenate and take out unwanted data. OR! I can get an all inclusive solution with awk, something i've not been able to do given the variable length of spaces AND field names AND data. So $1 and $2 and $3 have little meaning until I can do something with this file.
Any help is appreciated.