head (target)
Copy the first part of files (POSIX, toybox)
Syntax:
head [-cn num] [file...]
Runs on:
QNX OS
Options:
- -c num
- Number of bytes to copy.
- -n num
- Number of lines to copy.
- -q
- Never print file headers.
- -v
- Always print file headers.
- file
- The pathname of the input file that is copied to stdout.
Description:
The head utility copies its input files to the specified point of the standard output. If no files are listed, copy from stdin. The filename - is a synonym for stdin.
This utility is provided as part of the toybox package. For information on how to enable it, see toybox.
Contributing author:
Rob Landley and the toybox project (see https://landley.net/toybox/).
Page updated: