aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDima Dorfman <dd@FreeBSD.org>2001-07-22 10:33:31 +0000
committerDima Dorfman <dd@FreeBSD.org>2001-07-22 10:33:31 +0000
commitf4c77bb846edbf15ce71a3aa99718dbeeb61e255 (patch)
tree5720c8b0595ccc115a5dde5f9e7d558b965ffc65 /bin
parent17b65d5532a45383fd738c6731276397e5997855 (diff)
downloadsrc-f4c77bb846edbf15ce71a3aa99718dbeeb61e255.tar.gz
src-f4c77bb846edbf15ce71a3aa99718dbeeb61e255.zip
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.
Notes
Notes: svn path=/head/; revision=80138
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 3327f4d488a1..959b1e3ea254 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