head
head 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 -.[1]
- GNU Coreutils [EN] @ Homebrew Formula
Documentation
- head [EN] @ GNU Coreutils Manual
- man 1 'head' [EN]
Syntax
head [PARAMETER ...] [FILE ...]
Parameters
- -n [-]NUMBER, --lines=[-]NUMBER
- Output the first NUMBER lines. However, if NUMBER is prefixed with a -, print all but the last NUMBER lines of each file.