John Oliver wrote:
Is there a way to get find to not trip on spaces in filenames?

find has no problems with spaces in filenames.
it's usually what you want to DO with the filename once you've found it that causes the problems.

I prefer piping to xargs than using the -exec flag, and that requires the -print0 on the find size, and -0 on the xargs side

find /foo -type f -print0 | xargs -0 grep bar

--
Michael O'Keefe                      |          [EMAIL PROTECTED]
Live on and Ride an 06 BMW R12GS HP2 |          [EMAIL PROTECTED]      / |
I like less more or less less than   |Work:+1 858 845 3514        /  |
more. UNIX-live it,love it,fork() it |Fax :+1 858 845 2652       /_p_|
My views are MINE ALONE, blah, blah, |Home:+1 760 788 1296       \`O'|
blah, yackety yack - don't come back |Fax :+1 858                _/_\|_,


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to