bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QSH LS Info


From: Bob Proulx
Subject: Re: QSH LS Info
Date: Mon, 4 May 2009 20:14:46 -0600
User-agent: Mutt/1.5.18 (2008-05-17)

Bocchino, Frank wrote:
> I'm trying to create a report that'll show a directory sorted by
> file size.  I thought -S would provide that but it's not working.

What version of ls are you using?

  ls --version

What does the --help output show?

  ls --help | grep -e -S

I ask because I wonder if you are actually running 
that supports it.

> The syntax I'm using is;
> STRQSH CMD('ls -alS > /fbtest/test.txt')

Looks okay to me.

> Is there any way to run a QSH cmd that'll sort by file size? 

It works for me.

Worst comes to worst you can always use sort for this.

  ls -al | sort -k5,5nr

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]