bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in fgrep from http://unxutils.sourceforge.net/


From: John.Cowan
Subject: Re: bug in fgrep from http://unxutils.sourceforge.net/
Date: Wed, 24 Aug 2005 12:44:43 -0400
User-agent: Mutt/1.4.2.1i

Jack Thompson scripsit:

> Thanks for your quick reply.  My ESP is quite limited, so I better just
> paste my command ...
> 
> fgrep -r "def" *.py

That fails (as it will on Unix as well) because you are telling fgrep to
look only at files matching "*.py", none of which are directories.
So the -r option does you no good at all.

> When I work on UNIX systems, I usually just use find and pipe the files
> through grep - maybe I'm not using fgrep right????

That is indeed the Right Thing.  You may want to install Cygwin, which is
a comprehensive Unix environment for Windows.  (It's the first thing I
put on any new Windows box I get my hands on.)

-- 
Only do what only you can do.               John Cowan <address@hidden>
  --Edsger W. Dijkstra's advice             http://www.reutershealth.com
    to a student in search of a thesis      http://www.ccil.org/~cowan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]