Charles.Forsyth20060303-partialeea662d19 years agoHistory
33 lines · 796 B · Text
RawDownload
.TH SORT 1.TH NAMEsort \- sort file.SH SYNOPSIS.B sort[.B -nr] [.I file].SH DESCRIPTION.I Sortsorts the lines of.I file(default: standard input)and writes the sorted output tostandard output..PPWhole lines are sorted into increasing order, using lexicographic ordering of Unicode charactersby default.The sort is stable, so that lines that compare equal will appear in the outputin the same order as in the original file.The sort order is affected by the following options:.TP.B -nEach line is assumed to have an initial numeric string representing an integer,with optional plus or minus sign, and the linesare sorted by those numeric values into increasing order..TP.B -rReverses the sense of comparisons..SH BUGSThe entire file is read into memory to be sorted.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t