On 13/02/2010, at 3:49 PM, Nicholas Jefferson wrote:
The find script sorts the filenames (something find doesn't do),
but also handles files with spaces in the names.
GNU sort has the -z (--zero-terminated) option to "end lines with 0 byte, not newline", so find whatever -print0 | sort -z, and you don't need the tr.

Nice one, thanks!

--
You received this message because you are subscribed to the Google Groups "Ruby or 
Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to