Re: Sort by File Size

From: Barry Margolin (barry.margolin_at_level3.com)
Date: 05/28/03


Date: Wed, 28 May 2003 21:51:13 GMT

In article <Sw8Ba.8679$6R.5020@newssvr17.news.prodigy.com>,
John Sheakley <john_sheakley@sbcglobal.net> wrote:
>I could not find an option in the manual for the ls command to sort by file
>size. How do you sort by file size?

Pipe the output through to the sort command.

-- 
Barry Margolin, barry.margolin@level3.com
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


Relevant Pages

  • coreutils-7.3 released [stable]
    ... been a few other interesting fixes and improvements. ... run a command like this: ... sort -m no longer segfaults when its output file is also an input file. ... destination file system with a fundamental block size of 4KiB or greater. ...
    (gnu.announce)
  • Re: FC1 Install _appeared_ to work, BUT...
    ... what sort of messages do make it to screen? ... I used to run RHL7.3, dual booting, on a Sony Vaio laptop. ... command prompt only safe-mode in windows but without the GUI). ...
    (Fedora)
  • Re: [OT] Compiler warning level
    ... > have command lines" when they enter the course. ... I started -- well, OK, unless you count the front panel switches and the ... lights on the panel could be called a GUI, they were sort of graphical ... I tend to write the makefile before typing in the start of the ...
    (comp.lang.c)
  • Re: getline caveats misuse howto
    ... populates the ERRNO builtin variable if getline fails. ... down the two-way pipe to the UNIX "sort" command. ... gawk terminates the coprocess and exits. ...
    (comp.lang.awk)
  • Re: BROWSE: order by column
    ... oHdr is now a reference to the header object ... descending sort. ... If you have a lot of columns that would be a lot of command ... Just add the code to change the sort order to a new ...
    (microsoft.public.fox.programmer.exchange)