grep参数

来源:互联网 发布:文言文字典软件 编辑:程序博客网 时间:2024/05/21 17:00

grep

--line-buffered       flush output on every line

-o, --only-matching       show only the part of a line matching PATTERN


tail -f smart.log | grep --line-buffered -o 'Com2Cn -[0-9.]*' | grep --line-buffered -o ' [0-9.-]*' | grep -o '[0-9.-]*'

0 0
原创粉丝点击