data file contains
failed=24
error=23
error=163
failed=36
error=903
i need to get a total count of each value above. i'm looking for the most efficient method to do this as the datafile i provided is just a sample. the actual data can be several hundred thousands of lines.
so from the above data, the desired result should be:
error=1089
failed=60
notice how i got rid of the duplicates and only kept the value and then added up the value?
can awk do this efficiently?
thank you