On Wed, 5 Jul 2006 12:29:19 -0400, Todd Zullinger wrote: > Scott R. Godin wrote: > > perhaps better would be > > find -exec ls -ld {} \; > > Define better. :) > > Here's the time to run both commands on a new users home directory on > my system (Core Duo T2300, 1GB RAM). > > find ~ | xargs ls -ld: > > real 0m0.019s > user 0m0.008s > sys 0m0.008s > > find ~ -exec ls -ld {}: > > real 0m1.007s > user 0m0.072s > sys 0m0.212s > > That's on a directory with only 121 entries found by find. Ouch. > > And, the find -exec command's output wasn't aligned consistently like > it is when run from xargs (since with -exec you're executing an ls for > each file or dir, AFAIK). ouch indeed. you make a good point. Appreciate the clarification. :)
Attachment:
signature.asc
Description: This is a digitally signed message part
-- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list