From 703bf76847c96fec716225ee79ae5afe5992919f Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Sat, 21 Jul 2001 05:01:50 +0000 Subject: [PATCH] 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). --- bin/ls/ls.1 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/ls/ls.1 b/bin/ls/ls.1 index 8728d7a72eb..164e32db5e4 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 ,