I have a lot of data that throws a phone number into a log when the number has failed to load. I need to create a script the log for the phone number and creates a count next to that particular record in another file.
So far I have done:
more Fri11.errors|awk '{print $18}' |sort|uniq > max
as the phone numbers are always on the 18 column. This only creates a list of failed calls where ideally I would like the output to look like this:
Number Amount of Failures
000000000 1
If that's possible !
So far I have done:
more Fri11.errors|awk '{print $18}' |sort|uniq > max
as the phone numbers are always on the 18 column. This only creates a list of failed calls where ideally I would like the output to look like this:
Number Amount of Failures
000000000 1
If that's possible !