Linux shell head 命令

 

输出前25行
head -n25 input.txt
head -n 25 input.txt
head -25 input.txt


输出前5个字符
head -c5 test.cpp
head -c 5 test.cpp

 

 

参考:

https://www.jb51.net/article/146892.htm

posted @ 2019-07-31 00:39  anobscureretreat  阅读(4601)  评论(0)    收藏  举报