[oclug] Changing Permissions and LS

Ross Jordan rjordan at numb.ca
Mon Jul 12 14:21:58 EDT 2004


It would seem Matthew Wilcox, on Mon, Jul 12, 2004 at 06:34:57PM +0100, wrote:
> On Mon, Jul 12, 2004 at 01:25:32PM -0400, Jim Little wrote:
> > Try the -exec option of find, it can handle special characters:
> > 
> > find . -name "*mp3" -exec chmod +x {} \;
> 
> That's really damn slow because it forks a copy of chmod for each file
> it finds.  Doesn't suck too much for chmod, but one of my friends once did
> this to add files to a tar archive.  O(N^2) behaviour, baby.

So long as you have sufficient ram, it should be linear behaviour, although
with a large constant. 

-Ross



More information about the OCLUG mailing list