想打印前5行,用head即可:grep xxx |head -n 5

posted on 2017-06-07 14:17  蛋尼  阅读(2590)  评论(0)    收藏  举报