Searching a file for multiple strings (PS)

John Machin sjmachin at lexicon.net
Sun Feb 1 09:56:31 CET 2009


On Feb 1, 7:34 pm, Shawn Milochik <Sh... at Milochik.com> wrote:
> On Sun, Feb 1, 2009 at 1:14 AM, John Machin <sjmac... at lexicon.net> wrote:
> > On Feb 1, 3:39 pm, Shawn Milochik <Sh... at Milochik.com> wrote:
>
> >> Not to discourage the use of Python, but it seems that fgrep with the
> >> -f flag already does exactly what you want. If you're on Windows, you
> >> can get the Windows version of fgrep here:http://unxutils.sourceforge.net/
>
> > That URL is antique and a dead end. When you find the actual
> > sourceforge project page (http://sourceforge.net/projects/unxutils/)
> > and browse the forums and the CVS repository, you'll see tumbleweed
> > blowing down Main Street and not much else (besides a few whinges
> > about that dead end URL, and many unanswered issues).
>
> > Alternative:http://gnuwin32.sourceforge.net/
> > --
> >http://mail.python.org/mailman/listinfo/python-list
>
> Thanks very much for the update. I had been using the older versions
> (on the rare occasions I've had to use Windows). I didn't know there
> was a currently-maintained version.

Read my lips: unxutils is *not* "currently-maintained". Use GnuWin32.



More information about the Python-list mailing list