Keep first line untouched by a command, passing it directly to
stdout
. More information: https://github.com/eBay/tsv-utils#keep-header.
keep-header path/to/file -- sort
stdout
, passing the remainder of the file through the specified command:keep-header path/to/file -- command
stdin
, sorting all except the first line:cat path/to/file | keep-header -- command
keep-header path/to/file -- grep pattern