summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-07-22 10:33:31 +0000
committerdd <dd@FreeBSD.org>2001-07-22 10:33:31 +0000
commitae62c846d37482ceec97eabcf17b2d26277f5998 (patch)
tree5720c8b0595ccc115a5dde5f9e7d558b965ffc65 /bin
parent0b09f5187cb00dd42a76c5b5cda52ba6d0c44830 (diff)
downloadFreeBSD-src-ae62c846d37482ceec97eabcf17b2d26277f5998.zip
FreeBSD-src-ae62c846d37482ceec97eabcf17b2d26277f5998.tar.gz
Don't put a shell prompt in the example since none of the other man
pages do it. Also, don't use brackets to indicate optional options in the example; instead, add a paragraph below the example explaining it.
Diffstat (limited to 'bin')
-rw-r--r--bin/ls/ls.110
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/ls/ls.1 b/bin/ls/ls.1
index 3327f4d..959b1e3 100644
--- a/bin/ls/ls.1
+++ b/bin/ls/ls.1
@@ -363,9 +363,15 @@ The following is how to do an
.Nm
listing sorted by size (and shows why
.Nm
-does not need this functionality).
+does not need a separate option for this):
.Pp
-.Dl "% ls -l | sort [-r] -n +4"
+.Dl "ls -l | sort -n +4"
+.Pp
+Additionally, you may want to use the
+.Fl r
+flag to
+.Xr sort 1
+to get the results sorted from largest to smallest (a reverse sort).
.Sh DIAGNOSTICS
The
.Nm
OpenPOWER on IntegriCloud