Hans Fugal wrote:
Or if you prefer

    find . -type f | while read i; do xargs chmod "$i"; done

This isn't as robust as null-termination (what if the filename has " in
it?), this idiom is nice to know because it comes in very handy.

best of both worlds? null seperated argument list to a quoted list.
find . -type f -print0 | xargs -0ri chmod "{}"


--
Ritter


/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to