linux grep显示行数和上下行内容

more catalina.out |grep -n --color=auto 'id:12332312312313'|grep --color=auto 'error'     sed -n '30745,30790p' catalina.out linux linux系统中,能够利用grep查看指定的内容,  好比:grep “123” test.log //查看test.log中包含123字
相关文章
相关标签/搜索