mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 11:34:59 +00:00
601 B
601 B
Name
sort - sort lines
Synopsis
$ sort [INPUT]
Description
Sort each lines of INPUT (or standard input). A quick sort algorithm is used.
Options
-k keydef
,--key-field keydef
: The field to sort by-u
,--unique
: Don't emit duplicate lines-n
,--numeric
: Treat the key field as a number-t char
,--sep char
: The separator to split fields by-r
,--reverse
: Sort in reverse order-z
,--zero-terminated
: Use\0
as the line delimiter instead of a newline
Examples
$ echo "Well\nHello\nFriends!" | sort
Friends!
Hello
Well