head [--silent] [--verbose][--lines n] [file][…]
[--quiet] [-v] [-n n]
[-q] [--bytes b]
[-c c]
Output the first 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.
[-n ][-]n |
tail [--silent] [--verbose][--lines n] [file][…]
[--quiet] [-v] [-n n]
[-q] [--bytes b]
[-c c]
Output the last lines of each file
to standard output, default 10.
With more than one file
, precede each with a header giving the file name.
With no file
, or when file
is -
, read standard input.
[-n] [+]n[sufx]
| output the last n lines, default 10Use --lines=+n to output lines starting with the n th
, like to skip a heading)
| |||||||||||||||||
-c [+]n[sufx] | output the last n characters / bytes; use -c +n to output bytes starting with the n th character of each file
| |||||||||||||||||
-f |