2

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

step2

step2

  • 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 '17 at 3:01
3

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 '17 at 15:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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