Windows 10, Emacs 25.1, Dired+

I want in Dired to find all files that contain text "UserOptions".

  1. M-x find-grep-dired
  2. In folder ca
  3. UserOptions

And here result:

  find exited abnormally with code 1 at Sat Dec  2 20:57:13



  • The find command that is issued in your Emacsis different from what I see using library find-dired+.el. What I see is this: find . \( -type f -exec grep -q -e UserOptions \{\} \; \) -exec ls -ld \{\} \;. (I also don't have a problem with it, but that's likely because of what @p_wiersig's answer says.)
    – Drew
    Dec 3, 2017 at 3:01

1 Answer 1


You need to use cygwin's or msys find command. The error messages shown above seem to come from the windows find command that is incompatible with emacs.

See "Using grep' andfind' on MS Windows" on emacswiki.org

  • I use package "xah-find".It's work fine without grep dependency.
    – Alex
    Dec 6, 2017 at 15:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.