监视增长的文件尾部是否存在某些关键字的有效方法是什么?
在外壳中,我可能会说:
tail -f "$file" | grep "$string" | while read hit; do
#stuff
done
江户川乱折腾
相关分类