3 ms·
Your Xcode project directory probably had spaces in its path somewhere (which, for reasons of rather outdated conventions, is less common to encounter under Lin
by derefr 9y ago
Your Xcode project directory probably had spaces in its path somewhere (which, for reasons of rather outdated conventions, is less common to encounter under Linux.)
Like with any other Unix, dealing with spaces in the arguments passing through a pipeline to xargs(1) requires the NUL-delimited style:
find . -print0 | xargs -0 grep abcd
or you can stop worrying about the spaces by letting find(1) handle them:
find . -exec grep abcd \{\} \;
or, even better, get grep(1) to do the whole job (which also has the advantage of tagging each found line with the filename the result was found in):
grep -R abcd .