From owner-freebsd-arch Wed Mar 6 12:40:54 2002 Delivered-To: freebsd-arch@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 1DFFA37B405 for ; Wed, 6 Mar 2002 12:40:52 -0800 (PST) Received: from caddis.yogotech.com (caddis.yogotech.com [206.127.123.130]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id NAA04980; Wed, 6 Mar 2002 13:40:31 -0700 (MST) (envelope-from nate@yogotech.com) Received: (from nate@localhost) by caddis.yogotech.com (8.11.6/8.11.6) id g26KeUd36767; Wed, 6 Mar 2002 13:40:30 -0700 (MST) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15494.32446.840336.843194@caddis.yogotech.com> Date: Wed, 6 Mar 2002 13:40:30 -0700 To: Alfred Perlstein Cc: Wes Peters , arch@FreeBSD.ORG Subject: Re: Sorting and Matching options for ls(1) In-Reply-To: <20020306201842.GS77980@elvis.mu.org> References: <3C862030.9080108@softweyr.com> <20020306201842.GS77980@elvis.mu.org> X-Mailer: VM 6.96 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Alfred Perlstein writes: > * Wes Peters [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