Date: Wed, 6 Mar 2002 13:40:30 -0700 From: Nate Williams <nate@yogotech.com> To: Alfred Perlstein <bright@mu.org> Cc: Wes Peters <wes@softweyr.com>, arch@FreeBSD.ORG Subject: Re: Sorting and Matching options for ls(1) Message-ID: <15494.32446.840336.843194@caddis.yogotech.com> In-Reply-To: <20020306201842.GS77980@elvis.mu.org> References: <3C862030.9080108@softweyr.com> <20020306201842.GS77980@elvis.mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Alfred Perlstein writes:
> * Wes Peters <wes@softweyr.com> [020306 12:05] wrote:
> > At the request of several FreeBSD users, I have developed the following
> > two options for ls(1):
> >
> > -M Display files that match the specified types only. The file
> > types are specified by a single character as in strmode(3),
> > with
> > the option to specify regular files as ``r'' instead of ``-''
> > if
> > needed.
> >
> > -S Explicity specify the sorting order. The sorting flags are:
>
> EXAMPLES
> The following is how to do an ls listing sorted by size (and shows why ls
> does not need a separate option for this):
>
> ls -l | sort -n +4
Or, alternatively.
ls -ls | sort
And in reverse order
ls -ls | sort -r
Nate
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15494.32446.840336.843194>
