Clever Geek Handbook
📜 ⬆️ ⬇️

sort

sort --help

sort is a UNIX utility that displays a sorted merge of specified files to standard output using the locale installed in the environment.

Use

  • sort [-m] [- o output] [- bdfinru] [- t char] [- k keydef] ... [file ...]
  • sort -c [-bdfinru] [-t char] [-k keydef] [file]

Launch Options

-b, --ignore-leading-blanks
ignore initial skips
-d, - dictionary order
consider only omissions, letters and numbers
-f, --ignore-case
ignore letter case
-i, --ignore-nonprinting
consider only typed characters
-n, --numeric-sort
compare string numbers
-h, --human-numeric-sort
compare numerical values, taking into account the reduction of the degree (2K, 1G)
-r, --reverse
draw comparison results
-u, - unique
with -c, check the order strictly; without -c, display only the first among several equals
-c, --check
check if input files are sorted; do not sort
-k, --key = Pos1 [, Pos2]
start the key in Pos1 and terminate on Pos2 (counting from 1)
-o, --output = FILE
output to FILE, not to standard output
-t, --field-separator = DIVIDER
use when searching for key fields DIVIDER, and not the transition from non-whitespace to whitespace

-m

use RAM as buffer

Links

  • sort(1) is the man help page for GNU / Linux user commands (see GNU Coreutils )
  • sort(1) - the man help page for OpenBSD user commands (English) (English)
  • sort(1) - the man help page for FreeBSD user commands (Eng.) (Eng.)
Source - https://ru.wikipedia.org/w/index.php?title=Sort&oldid=86220975


More articles:

  • Levy (Quebec)
  • Lucas, Edward
  • Street George Ratner (Samara)
  • Armed Forces of El Salvador
  • International Criminal Law
  • Knopf, Fernand
  • F
  • Coenred
  • Quirinale Palace
  • Photographic Shutter

All articles

Clever Geek | 2019