Show an example of how to sort a file listing by size. Hopefully this

will reduce the number of people calling for this functionality to be
added to ls(1).
This commit is contained in:
David E. O'Brien 2001-07-21 05:01:50 +00:00
parent 9d839ea8e4
commit 703bf76847
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80072

View File

@ -358,6 +358,14 @@ or
.Xr sticky 8 . )
.El
.El
.Sh EXAMPLES
The following is how to do an
.Nm
listing sorted by size (and shows why
.Nm
does not need this functionality.
.Pp
.Dl "% ls -l | sort [-r] -n +4"
.Sh DIAGNOSTICS
The
.Nm
@ -525,6 +533,7 @@ specification.
.Sh SEE ALSO
.Xr chflags 1 ,
.Xr chmod 1 ,
.Xr sort 1 ,
.Xr xterm 1 ,
.Xr termcap 5 ,
.Xr symlink 7 ,