查异常 cat -n abc.log |grep Exception|more 如找到行数为:5201314行,再查看该行前后的异常信息 cat -n abc.log |tail -n +5201314|head -n 30
以下图片 出自菜鸟教程: http://www.runoob.com/linux/linux-comm-tail.html
http://www.runoob.com/linux/linux-comm-cat.html
命令解说: