Hi...
I have a file containing customer records that needs to be split into US and non-US customers. The records in this file are not delimited in any way. The country code appears in character positions (bytes) 312 and 313. If it equals 'US', then it goes to the US file, if not, it goes to a Foreign file. I don't know whether to use sort, awk, nawk, or anything else to solve my dilemma. Any takers??
I have a file containing customer records that needs to be split into US and non-US customers. The records in this file are not delimited in any way. The country code appears in character positions (bytes) 312 and 313. If it equals 'US', then it goes to the US file, if not, it goes to a Foreign file. I don't know whether to use sort, awk, nawk, or anything else to solve my dilemma. Any takers??