From 21a13652df728c9571f899caf4949d5d46f49db7 Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 1 May 2024 17:39:45 +0000 Subject: deploy: 7ca41565c4e70b212cb88a4d18c18fa35768df6d --- tools/sort.html | 261 -------------------------------------------------------- 1 file changed, 261 deletions(-) delete mode 100644 tools/sort.html (limited to 'tools/sort.html') diff --git a/tools/sort.html b/tools/sort.html deleted file mode 100644 index b277dc0..0000000 --- a/tools/sort.html +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - sort - Notes - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - -
-
-

sort(1)

-
sort [opts] [file]
-  opts:
-    -r      reverse output
-    -b      ignore leading blanks
-
-    -n      sort by numeric
-    -h      sort by human numeric
-    -V      sort by version
-
-    -k<N>  sort by Nth key
-    -t<S>  field separator
-
-

Examples

-
# Sort by directory sizes.
-du -sh * | sort -h
-
-
# Sort numeric by second key.
-# The default key separator is non-blank to blank transition.
-echo 'a 4
-d 10
-c 21' | sort -k2 -n
-
-# Sort numeric by second key, split at comma.
-echo 'a,4
-d,10
-c,21' | sort -k2 -n -t,
-
-
-

Use --debug to annotate part of the line used to sort and hence debug the key usage.

-
- -
- - -
-
- - - -
- - - - - - - - - - - - - - - - - - -
- - -- cgit v1.2.3