I have a log file and the following commands
grep '"REFERENCE":"78","STATUS":"Buffered"' file.log | wc -l
grep '"REFERENCE":"78","STATUS":"Delivered"' file.log | wc -l
grep '"REFERENCE":"78","STATUS":"Not Delivered"' file.log | wc -l
Is there a way using a one liner to get an output like:
Buffered: 30
Delivered: 1200
Not Delivered: 589
The output has not to be exactly the same.