Quote:
Originally Posted by AlucardZero
Code:
find . -type f ! -name "Test*" | xargs grep assign
! meaning "not".
|
Hi,
this is problematic if the filename contains whitespace characters. This prevents those error:
Code:
find . -type f ! -name "Test*" -print0 | xargs -0 grep assign
However, you do not need 'xargs' at all in this case:
Code:
find . -type f ! -name "Test*" -exec grep assign '{}' +
will accomplish the same thing.