Re: How to sort files in a directory?
On Wed, Feb 27, 2008 at 03:35:47PM +0100, Michelle Konzack wrote:
> Am 2008-02-24 18:49:09, schrieb Tzafrir Cohen:
> > Find indeed needs some help. It can only produce a list, and not very good
> > at sorting it out-of-order.
> >
> > find . -name \*.txt -printf '%f\n' | sort
>
> Better:
>
> find . -name "*.txt" |sort
But this does what the OP did (Boo!) and not what he actually asked for.
mkdir z
touch z/a.txt
touch b.txt
--
Tzafrir Cohen | tzafrir@jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir@cohens.org.il | | best
ICQ# 16849754 | | friend
Reply to: