一、查看文件追加的含有关键字的内容
tail -f xxxxx.log | grep keyword
二、查看文件含有关键字的内容
cat xxx.log | grep keyword
三、统计文件中关键字出现的次数
cat xxx.log | greo -o keyword | wc -l