Skip to content

random($foo) is the occassionally still updated blog of Leonard Lin. My pics are on Flickr, code is on Github. @lhl on Twitter.   More »

random($foo)

Posted on November 7, 2003February 27, 2005 by lhl

I’ve probably posted this before, I’m always forgetting how to chmod against only folders (directories):

find . -type d -print0 | xargs -0 chmod g+s

Using the 0 character delimiter fixes newline and ending-with-space corner cases; that’s something new, would have saved me some trouble last time.

Posted in Legacy

Post navigation

Previous Post
Next Post