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

Re: How to sort files in a directory?



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

which works nicely

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: