grep命令打印前N行

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

原文地址:https://www.cnblogs.com/dannyyao/p/6956801.html