Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • I tried your modifications and I'm still not getting the result I am expecting. I'll try updating the question to make it clearer. Commented Jul 5, 2012 at 19:14
  • If the author of the question just wants to find filenames, shouldn't the grep be 'grep -l -v'? Commented Jul 5, 2012 at 19:14
  • he's looking for specific contents in the *.java files Commented Jul 5, 2012 at 19:17
  • xargs -0 grep -v "something something" should be xargs -0 grep -v "something something" /dev/null otherwise you will get odd results when find produces no matching files. Commented Jul 6, 2012 at 14:58
  • {Grin} yeah, somewhere in there the logic got all hairy. Nothing like an inversed false logic multiple test to make your head hurt. Commented Jul 6, 2012 at 15:00