Friday, May 14, 2010

find + xargs problem with whitespaces

Problem with spaces in filenames? Use null character for the output of find:

find /tmp/space* -print0 | xargs -0 grep "hello"

No comments: