Did you notice, that you need a blank before the plus sign? $ find . -name pom.xml -exec grep '<repository>' {}+ $ find . -name pom.xml -exec grep '<repository>' {} +
For example, if find finds the files a/pom.xml and b/pom.xml, it will try to build the exec part as: $ grep '<repository>' a/pom.xml b/pom.xml+ instead of $ grep '<repository>' a/pom.xml b/pom.xml leaving the + for find as special option. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1422453 Title: Enhance feedback of missing argument to -exec To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/findutils/+bug/1422453/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs