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

Re: [solved] Re: How to sort files in a directory?



On Wed, Feb 27, 2008 at 08:14:06PM +0000, Rodolfo Medina wrote:
> Jeff D <fixedored@gmail.com> writes:

> Thanks to all who replied.  It seems that for my purposes this works:
> 
>  $ cd /path/to/dir
>  $ ls *.txt */*.txt | sort 

Huh?

That is not what you asked for. It does not trim the directory names.
And sorts by the full path as well.

Boo!

-- 
Tzafrir Cohen         | tzafrir@jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir@cohens.org.il |                    |  best
ICQ# 16849754         |                    | friend


Reply to: