[TAG] [2 cents TIP] efficient use of "-exec" in find

Neil Youngman ny at youngman.org.uk
Mon Feb 1 19:18:57 MSK 2010


On Monday 01 February 2010 16:04:27 Ben Okopnik wrote:
> > Well du -k and find -ls will usually give completely numbers, e.g.
>
> I'm quite aware of that. That's why I gave the second solution - just in
> case Mulyadi wanted the number of blocks instead of the filesize.

Yeah, I would have been surprised if you didn't know the difference, but I 
wouldn't say that your choice of words made it at all obvious for the casual 
reader. Hopefully I added a little clarity for our less experienced readers, 
if it gets into the Gazette.

I agree that I should have taken a closer look at your second option and 
acknowledged that it was a "simpler" way of getting the same result 
as "du -k".

Neil





More information about the TAG mailing list