On Wed, Sep 04, 2002 at 09:19:16AM -0400, Timothy Writer wrote: > I recommend using find in combination with xargs instead of -exec. Like > this: > > find <root-dir> -type f -print | xargs chmod 644 > find <root-dir> -type d -print | xargs chmod 755
I agree about xargs, but use the NUL options: Use find ... -print0 | xargs -0 This eliminates problems with whitespace (e.g. newline) in filenames. Since any character except NUL and '/' are allowed in filenames, the only valid separator/terminator is NUL. Regards, Bill Rugolsky -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list