I have a file of records that look like this:
03/02/2005|oru_in|BAD MEDREC ID|medrec='12345',enc='111'
My script needs to separate these out into two separate files and the only difference is in the length of the medrec value (12345 above) ... one group has values of length 10, the other has values of length 7.
I can parse the line out based on the field separator '|' but can't figure out how to check the length of the medrec value (again, 12345 in the example above).
This will be operating on the input file and creating the two output files all at the same time although I could create intermediate working files if necessary.
Ideas?
Tnx.
Tom
"My mind is like a steel whatchamacallit ...
03/02/2005|oru_in|BAD MEDREC ID|medrec='12345',enc='111'
My script needs to separate these out into two separate files and the only difference is in the length of the medrec value (12345 above) ... one group has values of length 10, the other has values of length 7.
I can parse the line out based on the field separator '|' but can't figure out how to check the length of the medrec value (again, 12345 in the example above).
This will be operating on the input file and creating the two output files all at the same time although I could create intermediate working files if necessary.
Ideas?
Tnx.
Tom
"My mind is like a steel whatchamacallit ...