head (1)


NAME
SYNOPSIS
DESCRIPTION
OPTIONS
OPERANDS
COPYRIGHT
Source Code

NAME

head - copy the first part of files

SYNOPSIS

head

[-n number] [file...]

DESCRIPTION

The head utility copies its input files to the standard output, ending the output for each file at a designated point.

Copying ends at the point in each input file indicated by the -n number option. The option-argument number is measured in units of lines.

OPTIONS

-n number

The first number lines of each input file will be copied to standard output. The number option-argument has to be a positive decimal integer.

When a file contains less than number lines, it is copied to standard output entirely.

If no options are specified, head acts if -n 10 has been specified.

OPERANDS

The following operand is supported:

file

A pathname of an input file. If no file operands are specified, the standard input is being used. If a file is ’-’, the head utility reads from the standard input.

COPYRIGHT

Copyright © 2021 Benjamin Stürz
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


Generated using groff on 2022-01-16 22:48:31 (UTC)

Look at my source code on GitHub Memes
This website is licensed under the terms of the AGPLv3.
Tor link: 3gto4zix3cpwhq32sh5ygsr3brlmgy4pdf26md46e4zpzfzmbftw3cyd.onion