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

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