Article View: comp.unix.shell
Article #256Re: sort de l'output
From: David W. Tamkin
Date: Sat, 01 Aug 1992 17:01
Date: Sat, 01 Aug 1992 17:01
14 lines
1175 bytes
1175 bytes
wongm@latcs1.lat.oz.au wrote in <1992Jul31.035445.24776@latcs1.lat.oz.au>: | I have a simple question to ask, ie when using du command, how can | can we have the listing sorted with the file size as sort key. | | I tried : du | +0 -1 but this will not give correct result. du | sort -n or du | sort +0n The -n option tells sort to compare by numerical magnitude. 10 precedes 2 lexically but 2 < 10 numerically. David W. Tamkin Box 59297 Northtown Station, Illinois 60659-0297 dattier@ddsw1.mcs.com CompuServe: 73720,1570 MCI Mail: 426-1818
Technical Details
Message-ID:
<1992Aug1.170145.18287@ddsw1.mcs.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!nucsrl!ddsw1!dattierReferences:
<1992Jul31.035445.24776@latcs1.lat.oz.au>Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.shell
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!nucsrl!ddsw1!dattier
From: dattier@ddsw1.mcs.com (David W. Tamkin)
Subject: Re: sort de l'output
Message-ID: <1992Aug1.170145.18287@ddsw1.mcs.com>
Organization: Contributor Account at ddsw1, Chicago, Illinois 60657
References: <1992Jul31.035445.24776@latcs1.lat.oz.au>
Date: Sat, 1 Aug 1992 17:01:45 GMT
X-Disclaimer: Material posted in this article is the sole responsibility of
the poster and does not represent MCSNet or the system owners.
Lines: 14