I need to find which files (they can have space in the filename) of a directory contains a string using only sh and system's commands (Perl is not an option).
For a few files, this command works fine:
# grep -l word * file 1 file1
But if I have 270k file, I obtain the following error:
# grep -l word * sh: /usr/bin/grep: The parameter list is too long.
In HP-UX, the
xargs command doesn't have the
-0 option, so I can't use this:
# find . -print0 |xargs -0 grep -l xargs: unknown option: -0
Do you know which command I can use?