fetch/evs/, there is no sub-folder, I have a command which is supposed to list all the files of
fetch/evs/*.ev which don't contain text
find . -ipath '*/fetch/evs/*.ev' | xargs grep -L -e "' Error" > try0.txt
This command returns 692 files. What is odd is that it ignores a part of files which satisfy the criteria, for instance if I do:
find . -ipath '*/fetch/evs/grades*.ev' | xargs grep -L -e "' Error" > try1.txt
This command returns 72 files which are not in
try0.txt at all.
I really cannot understand this... Could anyone help?
Edit1: I just realize that I omitted a very important information, actually a message is raised after the command:
xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option. And the command does stop going through at a file whose name contains
'. To correct this, I tried:
find . -ipath '*/fetch/evs/*.ev' | xargs -0 grep -L -e "' Error" > try3.txt
xargs: argument line too long and 0 file.
I also tried:
find . -ipath '*/fetch/evs/*.ev' -print0 | xargs -0 grep -L -e "' Error" > try4.txt
which does not stop at all....
Does anyone have any idea?