HEAD

Output the first part of files, prints the first part (10 lines by default) of each FILE; it reads from standard input if no files are given or when given a FILE of &qt;-&qt;&qt;.

SYNTAX
head [options]… [file]…

head -NUMBER [options]… [file]…

If more than one FILE is specified, &qt;head&qt;&qt; prints a one-line header consisting of
==> FILE NAME <==
before the output for each FILE.

&qt;head&qt;&qt; accepts two option formats:
the new one, in which numbers are arguments to the options (&qt;-q -n 1&qt;&qt;), and
the old one, in which the number precedes any option letters (&qt;-1q&qt;&qt;).

OPTIONS

&qt;-COUNTOPTIONS&qt;&qt;
This option is only recognized if it is specified first. COUNT is
a decimal number optionally followed by a size letter (&qt;b&qt;&qt;, &qt;k&qt;&qt;,
&qt;m&qt;&qt;) as in &qt;-c&qt;&qt;, or &qt;l&qt;&qt; to mean count by lines, or other option
letters (&qt;cqv&qt;&qt;).

&qt;-c BYTES&qt;&qt;
&qt;–bytes=BYTES&qt;&qt;
Print the first BYTES bytes, instead of initial lines. Appending
&qt;b&qt;&qt; multiplies BYTES by 512, &qt;k&qt;&qt; by 1024, and &qt;m&qt;&qt; by 1048576.

&qt;-n N&qt;&qt;
&qt;–lines=N&qt;&qt;
Output the first N lines.

&qt;-q&qt;&qt;
&qt;–quiet&qt;&qt;
&qt;–silent&qt;&qt;
Never print file name headers.

&qt;-v&qt;&qt;
&qt;–verbose&qt;&qt;
Always print file name headers.

Tags: