Data Files and Output For Lab 5
########################### Starter Kit for Lab 4 ##########################
$ cat asg52g.add
NORTH CAROLINA:RALEIGH:43.3:60.4:48.5
ARIZONA:PHOENIX:7.1:86.4:64.2
NORTH CAROLINA:ASHVILLE:35.4:57.3:34.2
NORTH CAROLINA:RALEIGH:44.3:55.1:44.2
ARIZONA:TUCSON:11.1:80.4:55.2
ARIZONA:FLAGSTAFF:14.2:66.4:30.5
PENNSYLVANIA:PHILADELPHIA:39.6:65.4:46.4
NEW YORK:BUFFALO:40.2:57.3:28.2
NEW YORK:NEW YORK:41.4:66.4:50.0
WYOMING:CASPER:15.2:55.2:22.4
$ asg52g.pl -a asg52g.add
Will not add duplicate record for NORTH CAROLINA, RALEIGH!
$ asg52g.pl -l
State City Precip. Mean High Mean Low
----- ---- ------- --------- --------
NORTH CAROLINA RALEIGH 43.3 60.4 48.5
ARIZONA PHOENIX 7.1 86.4 64.2
NORTH CAROLINA ASHVILLE 35.4 57.3 34.2
ARIZONA TUCSON 11.1 80.4 55.2
ARIZONA FLAGSTAFF 14.2 66.4 30.5
PENNSYLVANIA PHILADELPHIA 39.6 65.4 46.4
NEW YORK BUFFALO 40.2 57.3 28.2
NEW YORK NEW YORK 41.4 66.4 50.0
WYOMING CASPER 15.2 55.2 22.4
$ asg52g.pl -s " aRIZONa "
City Precip. Mean High Mean Low
---- ------- --------- --------
PHOENIX 7.1 86.4 64.2
TUCSON 11.1 80.4 55.2
FLAGSTAFF 14.2 66.4 30.5
$ asg52g.pl -s "UPPer REvolta"
No data for state: UPPER REVOLTA
$ cat asg52g.add2
WYOMING:CASPER:14.2:50.3:33.2
NEW MEXICO:CARLSBAD:9.7:70.2:44.3
$ asg52g.pl -a asg52g.add2
Will not add duplicate record for WYOMING, CASPER!
$ asg52g.pl -l
State City Precip. Mean High Mean Low
----- ---- ------- --------- --------
NORTH CAROLINA RALEIGH 43.3 60.4 48.5
ARIZONA PHOENIX 7.1 86.4 64.2
NORTH CAROLINA ASHVILLE 35.4 57.3 34.2
ARIZONA TUCSON 11.1 80.4 55.2
ARIZONA FLAGSTAFF 14.2 66.4 30.5
PENNSYLVANIA PHILADELPHIA 39.6 65.4 46.4
NEW YORK BUFFALO 40.2 57.3 28.2
NEW YORK NEW YORK 41.4 66.4 50.0
WYOMING CASPER 15.2 55.2 22.4
NEW MEXICO CARLSBAD 9.7 70.2 44.3
$ cat asg52g.update
ARIZONA:PHOENIX:7.4:88.5:65.2
NEW MEXICO:ALBUQUERQUE:8.8:67.5:44.3
$ asg52g.pl -u asg52g.update
Cannot update record with NEW MEXICO,ALBUQUERQUE! Not found!
voyager 13% cat asg52g.del
ARIZONA:FLAGSTAFF
NEW YORK:BUFFALO
$ asg52g.pl -d asg52g.del
# Note below that Flagstaff, AZ and Buffalo, NY are gone!
# Note that Phoenix, AZ has been updated!
$ asg52g.pl -l
State City Precip. Mean High Mean Low
----- ---- ------- --------- --------
NORTH CAROLINA RALEIGH 43.3 60.4 48.5
ARIZONA PHOENIX 7.4 88.5 65.2
NORTH CAROLINA ASHVILLE 35.4 57.3 34.2
ARIZONA TUCSON 11.1 80.4 55.2
PENNSYLVANIA PHILADELPHIA 39.6 65.4 46.4
NEW YORK NEW YORK 41.4 66.4 50.0
WYOMING CASPER 15.2 55.2 22.4
NEW MEXICO CARLSBAD 9.7 70.2 44.3