1.命令如下:
cat /var/log/secure | awk '/Failed/{print $(NF-3)}' | sort | uniq -c | awk '{print $2" = "$1;}'
cat
/var/log/secure
|
awk
'/Failed/{print $(NF-3)}'
sort
uniq
-c |
'{print $2" = "$1;}'