.Dd 2026-06-02 .de oit .It \\$* .. .de obi .Bl -\\$1 -compact .shift .oit \\$* .. .de obe .obi \\$* .El .. .de obd .Bd -literal -compact \\$* .. .de obc .Bl -column \\$* .. .Dt SORT oh .Os .Nm sort .Nd usage and examples .obc .It -u Ta | unique, suppress duplicate lines. .It -h Ta | human numeric sort. .It -r Ta | reverse order. .It -R Ta | random sort. .It -k [N] Ta | sort by field N. .It -t [C] Ta | use C as field separator, the default separator is space. .El .Ss Examples .obd $ cat test a 1,12 b 3,100 d 2,1 c 10,14 b 3,100 $ cat test | sort -u a 1,12 b 3,100 c 10,14 d 2,1 $ cat test | sort -u -k2 a 1,12 c 10,14 d 2,1 b 3,100 $ cat test | sort -u -k2 -h a 1,12 d 2,1 b 3,100 c 10,14 $ cat test | sort -u -k2 -h -t "," d 2,1 a 1,12 c 10,14 b 3,100 $ cat t | sort -k2 -h -t "," d 2,1 a 1,12 c 10,14 b 3,100 b 3,100 .Ed .Sh TODO .obc .It - Translate to Spanish. .El .Sh HISTORY .obc _______ .It 2026-06-02 Ta : Created. .El .Sh AUTHORS .An -nosplit .Xr ohazot oh | .Xr about oh | .Lk https://ohazot.com ohazot.com .Aq Mt admin@ohazot.com