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@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@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@gmail.com> wrote:
Why not just 'ls > filelist.lst'?