sort: document -b

This commit is contained in:
Jakob Kramer 2014-05-03 20:42:33 +02:00 committed by sin
parent a2da9edb99
commit 814b04e710
2 changed files with 5 additions and 2 deletions

5
sort.1
View File

@ -3,7 +3,7 @@
sort \- sort lines sort \- sort lines
.SH SYNOPSIS .SH SYNOPSIS
.B sort .B sort
.RB [ \-nru ] .RB [ \-bnru ]
.RB [ \-k .RB [ \-k
.I key .I key
.R ]... .R ]...
@ -14,6 +14,9 @@ writes the sorted concatenation of the given files to stdout. If no file is
given, sort reads from stdin. given, sort reads from stdin.
.SH OPTIONS .SH OPTIONS
.TP .TP
.B \-b
skip leading whitespace of columns when sorting.
.TP
.B \-n .B \-n
perform a numeric sort. perform a numeric sort.
.TP .TP

2
sort.c
View File

@ -41,7 +41,7 @@ static bool bflag = false;
static void static void
usage(void) usage(void)
{ {
enprintf(2, "usage: %s [-nru] [-k def]... [file...]\n", argv0); enprintf(2, "usage: %s [-bnru] [-k def]... [file...]\n", argv0);
} }
int int