NAME(名称)
head - 输出文件的开始部分
SYNOPSIS(总览)
../src/head [OPTION]... [FILE]...
DESCRIPTION(描述)
在标准输出上显示每个FILE的起始10行. 如果多于一个FILE,则一个接一个地显示, 并且在每个文件显示的首部给出文件名. 如果没有FILE,或者FILE为-, 那么就从标准输入上读取.
- -c, --bytes=SIZE
- 打印起始的SIZE字节
- -n, --lines=NUMBER
- 显示起始的NUMBER行,而非默认的起始10行
- -q, --quiet, --silent
- 从不显示给出文件名的首部
- -v, --verbose
- 总是显示给出文件名的首部
- --help
- 显示帮助后退出
- --version
- 输出版本信息后退出
SIZE可以有一个倍数后缀: b表示512,k表示1K,m表示1M. 如果第一个OPTION(选项)为-VALUE, 当后面连接着倍数bkm之一时,则读为-c VALUE, 否则读为-n VALUE.
AUTHOR(作者)
David MacKenzie.
REPORTING BUGS(报告bugs)
请报告bugs到<bug-textutils@gnu.org>.
COPYRIGHT(版权)
Copyright � 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
SEE ALSO(另见)
head 的完整文档是以Texinfo手册形式维护的. 如果 info 和 head 程序在你那儿都已经安装好了,那么命令
- info head
应该会让你访问到整篇手册.
#p#
NAME
head - output the first part of files
SYNOPSIS
head [OPTION]... [FILE]...
DESCRIPTION
Print the first 10 lines of each FILE to standard output. With more than one FILE, precede each with a header giving the file name. With no FILE, or when FILE is -, read standard input.
Mandatory arguments to long options are mandatory for short options too.
- -c, --bytes=[-]N
- print the first N bytes of each file; with the leading `-', print all but the last N bytes of each file
- -n, --lines=[-]N
- print the first N lines instead of the first 10; with the leading `-', print all but the last N lines of each file
- -q, --quiet, --silent
- never print headers giving file names
- -v, --verbose
- always print headers giving file names
- --help
- display this help and exit
- --version
- output version information and exit
N may have a multiplier suffix: b 512, k 1024, m 1024*1024.
AUTHOR
Written by David MacKenzie and Jim Meyering.
REPORTING BUGS
Report bugs to <bug-coreutils@gnu.org>.
COPYRIGHT
Copyright © 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
SEE ALSO
The full documentation for head is maintained as a Texinfo manual. If the info and head programs are properly installed at your site, the command
- info coreutils head
should give you access to the complete manual.