1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:37:44 +00:00

sort: Add the -z option to split lines on \0 rather than a newline

This commit is contained in:
Tim Ledbetter 2023-08-26 23:21:54 +01:00 committed by Tim Flynn
parent b7676cc436
commit e6112446db
2 changed files with 10 additions and 7 deletions

View file

@ -19,6 +19,7 @@ Sort each lines of INPUT (or standard input). A quick sort algorithm is used.
* `-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