3

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

1
  • 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.) Commented Dec 3, 2017 at 3:01

1 Answer 1

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

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.