命令行统计log中关键字出现的次数 通过 tail, grep, awk 命令组合使用,统计log中关键字出现的次数 tail -f info.log | awk '/关键字/ {++i;printf "\r%d",i}' Please enable JavaScript to view the comments powered by Disqus. Related posts 让Redmine随Linux系统自动启动。