On Sun, Apr 10, 2005 at 05:59:04AM -0700, Steve Lamb wrote: > You'll note, however, that find does not replicate the functionality > of ls. It does not list all the file's attributes (name, date, > mtime, permissions, size and so on) only the filename itself for > another tool... say... ls to use to obtain that information. I haven't followed the previous part of the conversation, but I'll chip in here in defense of 'find'. I think you will find the following commands to be _roughly_ equivalent: ls -lR find . -printf "%m %n %u %g %s %p\n" Sure, the 'ls' example is far simpler, but 'find' can give you the same info and gives you much more flexibility. If I wanted to do something weird with files I used to do an 'ls' of a directory and combine it with some sauce of grep, sed, cut and paste. You can get *very* interesting command lines that way. ;-) Now I increasingly find myself using 'find' with the 'printf' option. -- Maurits van Rees | http://maurits.vanrees.org/ [Dutch/Nederlands] Public GnuPG key: keyserver.net ID 0x1735C5C2 "Let your advance worrying become advance thinking and planning." - Winston Churchill
Attachment:
signature.asc
Description: Digital signature