5

I have the full gnuwin32 installation on my Win7 box. From the shell (cmd.exe), I can execute

c:\gnuwin32\bin\find.exe .

from a directory and get a list of all the files recursively. What I am trying to do is find all files with filenames ending in .rej. I would expect one of these to work:

c:\gnuwin32\bin\find.exe . -name "*.rej"
c:\gnuwin32\bin\find.exe . -name '*.rej'

but the first one only gives me one result (in the working directory), and the second gives me no results. In contrast,

ls -R | grep rej$

gives me many, many results ending in .rej. What am I missing?

Andrew
  • 215

1 Answers1

1

I never found a good answer regarding anything I can do to make gnuwin32 find work, but I found this answer with a workaround. Specifically, using the nearly-decade-old find.exe from UnxUtils seems to work.

Andrew
  • 215