LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

keep-header

preserves the first line of a file while passing the remaining lines through

TLDR

Sort file keeping header
$ keep-header [file] -- sort
copy
Filter with grep keeping header
$ keep-header [file] -- grep [pattern]
copy
Pipe through multiple commands
$ keep-header [file] -- sort | head -20
copy

SYNOPSIS

keep-header file -- command [args...]

DESCRIPTION

keep-header preserves the first line (header) of a file while passing the remaining lines through another command. Useful for processing CSV or TSV files where you want to sort or filter data without losing column headers.

SEE ALSO

head(1), tail(1), sort(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid