[Wlug] list filenames within directory > output to text file?

Brett Russ bruss at alum.wpi.edu
Wed May 9 19:35:54 EDT 2012

I know this issue is solved/dead/buried, but there were a couple
responses (below) that should be clarified.

I was told in the past that ls stands for "list sorted", a statement I
can't confirm from the usual internet fact check sites.  In any case,
it is specifically designed to (alphabetically) sort output, no need
to invoke any other sorts.

On Wed, May 9, 2012 at 7:08 PM, Aljerin Butler,Jr. <albutlerjr at yahoo.com> wrote:
> You can also try:
> ls | sort > /home/EJ/Directory/CurrentList.txt

On Tue, May 8, 2012 at 6:12 PM, Jason Couture <plaguethenet at gmail.com> wrote:
> She said she wanted a sorted list, and the above commands will work
> even if she creates subdirectories in the future.
> On Tue, May 8, 2012 at 6:10 PM, soup <soupforare at gmail.com> wrote:
>> Why not just 'ls > filelist.lst'?

More information about the Wlug mailing list