sort

command
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Sort lines.

Synopsis:

sort [OPTIONS]... [INPUT]...

Description:

Sort copies lines from the input to the output, sorting them in the
process. This does nothing fancy (no multi-threading, compression,
optiminzations, ...); it simply uses Go's sort.Sort function.

Options:

-r:      Reverse the result of comparisons
-C:      Check that the single input file is ordered. No warnings.
-u:	     Unique keys. Suppress all lines that have a key that is equal to an already processed one.
-f: 	 Fold lower case to upper case character.
-b: 	 Ignore leading blank characters when comparing lines.
-n:      Compare according to string numerical value.
-o FILE: Specify the name of an output file to be used instead of the standard output.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL