summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-07-21 05:01:50 +0000
committerobrien <obrien@FreeBSD.org>2001-07-21 05:01:50 +0000
commit9ad3c1f1f7bb1fe455885f1d80ea8b2ddcadd107 (patch)
tree64d9124d2373cf561671447554c865f9f72c007b /bin
parent78bfafdf45a43736768284338517fe432be1e28f (diff)
downloadFreeBSD-src-9ad3c1f1f7bb1fe455885f1d80ea8b2ddcadd107.zip
FreeBSD-src-9ad3c1f1f7bb1fe455885f1d80ea8b2ddcadd107.tar.gz
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).
Diffstat (limited to 'bin')
-rw-r--r--bin/ls/ls.19
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/ls/ls.1 b/bin/ls/ls.1
index 8728d7a..164e32d 100644
--- a/bin/ls/ls.1
+++ b/bin/ls/ls.1
@@ -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 ,
OpenPOWER on IntegriCloud