From f4c77bb846edbf15ce71a3aa99718dbeeb61e255 Mon Sep 17 00:00:00 2001
From: Dima Dorfman
Date: Sun, 22 Jul 2001 10:33:31 +0000
Subject: [PATCH] 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.
---
bin/ls/ls.1 | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/bin/ls/ls.1 b/bin/ls/ls.1
index 3327f4d488a..959b1e3ea25 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