> From: tech-boun...@lists.lopsa.org [mailto:tech-boun...@lists.lopsa.org] > On Behalf Of Edward Ned Harvey (lopser) > > I'm searching for files that contain the string "LockFile" in them. I know of > one place where it exists already... But the following command only returns > one result, which is not the result I already knew existed.
Actually, I got it: For some reason, the find command itself finds "file-io.c" in its results, but when I do "-exec" then it only results in '*.h' files printing out. I'm reasonably certain that's a bug in the 'find' utility. Edwards-MacBook-Pro:mono eharvey$ find . -name '*.cs' -or -name '*.c' -or -name '*.h' | grep file-io.c ./mono/metadata/file-io.c Edwards-MacBook-Pro:mono eharvey$ find . -name '*.cs' -or -name '*.c' -or -name '*.h' -exec echo {} \; | grep file-io.c (no results; in fact, if I get rid of the trailing grep, all the results displayed are '*.h' so of course the grep would not see 'file-io.c' in those results) _______________________________________________ Tech mailing list Tech@lists.lopsa.org https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech This list provided by the League of Professional System Administrators http://lopsa.org/