Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Script to list all filesystem objects with ACLs' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Script to list all filesystem objects with ACLs
Authored by: xr4ti on Aug 22, '08 07:08:21PM

It is faster to use '+' (much faster, as it turns out).

I avoided '+' for two reasons: 1) I wasn't sure how much more memory the '+' approach takes on a large job like this, or even if it might overrun a buffer. (It does spawn multiple processes, so it must have some decent buffer management.) 2) It produces an output that is padded with spaces, which will make the output significantly larger for a large job like this.

I've since done some testing, and found that the '+' only takes about 4* the RAM during processing (not a big deal in today's world), and seems to avoid creating commands that are too large, so it's probably the better choice (if you don't mind a resulting file that is much bigger).

The two commands did give me slightly different results. With over 1M entries to slog through, I haven't yet found the differences. But the savings in time is probably worth the larger file, so I recommend changing the ';' to a '+'.



[ Reply to This | # ]