tballs
Technical User
- Jul 27, 2011
- 4
Hello,
I have a file that has something like this:
1245|123 CHURCH CT STRATFORD CT 02323|$1234.56|MORE INFO
1246|234 GREEN ST SALEM OR 97305|$11223.43|MORE INFO
1247|12 DAYLIGHT LN ALBANY OR 97321|$23.00|MORE INFO
I'm trying to format as follows so I can use awk to pull fields and place in a different order if I choose to do so:
number|address|city|st|zip|more info
There is 2 spaces between the address and city (or there should be). But what's happening if I key off the 2 spaces is there is also sporatic (2 spaces) like between "DAYLIGHT LN". Any ideas?
Thanks in advance
I have a file that has something like this:
1245|123 CHURCH CT STRATFORD CT 02323|$1234.56|MORE INFO
1246|234 GREEN ST SALEM OR 97305|$11223.43|MORE INFO
1247|12 DAYLIGHT LN ALBANY OR 97321|$23.00|MORE INFO
I'm trying to format as follows so I can use awk to pull fields and place in a different order if I choose to do so:
number|address|city|st|zip|more info
There is 2 spaces between the address and city (or there should be). But what's happening if I key off the 2 spaces is there is also sporatic (2 spaces) like between "DAYLIGHT LN". Any ideas?
Thanks in advance