我有一个日志文件和以下命令
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
有没有办法使用一个衬里来获得如下输出:
Buffered: 30
Delivered: 1200
Not Delivered: 589
输出不必完全相同。