|
|
|
|
|
by heads
841 days ago
|
|
And at the command line: headers to stderr, body to stdout. Without it you get this behavior: > heights | sort -k2 -nr
George 186
Wally 173
NAME HEIGHT
But if the headers bypass stdout then you get this instead: > heights | sort -k2 -nr
NAME HEIGHT
George 186
Wally 173
|
|
does the right thing.
(from https://stackoverflow.com/a/56151840)