曲径通幽论坛
标题:
head-----------查看文本内容
[打印本页]
作者:
beyes
时间:
2008-11-23 16:02
标题:
head-----------查看文本内容
head
Displyas fist few lines ( default 10 lines ) of text in a file(显示纯文字文件的前几行内容,默认为前10行)。
Use
-n
or
--lines
parameter to change number of lines displayed.(使用 -n 或 --lines 参数改变要显示的行数),如:
head -n 15 file1
或
head --line 17 file1
或
head -12 file1
使用 head 命令的主要原因在于,我们可能只是关心一个文件的作用。因为一个文件的作用往往在前面几行中说明。
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/)
Powered by Discuz! X3.2