Thank you very much for the help..
I tested Thomas script and it produced no output somehow....It also didn't abort...
I tried Madan's script with the actual file and it produced an output like this
parse.ksh[22]: no space
I need to compare the count of records for each partner name from the Detail file (which is the authoritative source) with the count number from the Summary file.
If the Detail file has records like..
PHP Code:
D MIDWEST FIRSTNAME LASTNAME 209 N SANBORN AVE JEFFERSON
D MIDWEST FIRSTNAME LASTNAME 209 N SANBORN AVE JEFFERSON
D CAESAR FIRSTNAME LASTNAME 209 N SANBORN AVE JEFFERSON
D AIRTRAN FIRSTNAME LASTNAME 209 N SANBORN AVE JEFFERSON
D AIRTRAN FIRSTNAME LASTNAME 209 N SANBORN AVE JEFFERSON
D AIRTRAN FIRSTNAME LASTNAME 209 N SANBORN AVE JEFFERSON
D CAESAR FIRSTNAME LASTNAME 209 N SANBORN AVE JEFFERSON
D MIDWEST FIRSTNAME LASTNAME 209 N SANBORN AVE JEFFERSON
D MIDWEST FIRSTNAME LASTNAME 209 N SANBORN AVE JEFFERSON
Summary File
PHP Code:
S MIDWEST 4
S ORBITZ 0
S AIRTRAN 3
S FRONTIER 0
S CAESAR 2
Detail file should be compared with the Summary file...For example, MIDWEST has 4 records in the Detail file and the Summary file has MIDWEST with count 4, then it is a PASS else FAIL.
I am not sure at this point, which one should I be following...If you can please help me on this, that would be really appreciated.
Thank You,
Madhu