Re: Searching a file for multiple strings (PS)

2009-02-02 Thread gotbyrd
On Jan 31, 11:39 pm, Shawn Milochik wrote: > On Sat, Jan 31, 2009 at 3:00 PM, Tim Chase > > wrote: > >>> I'm fairly new with python and am trying to build a fairly simple > >>> search script.  Ultimately, I'm wanting to search a directory of files > >>> for multiple user inputted keywords.  I've

Re: Searching a file for multiple strings (PS)

2009-02-01 Thread John Machin
On Feb 1, 7:34 pm, Shawn Milochik wrote: > On Sun, Feb 1, 2009 at 1:14 AM, John Machin wrote: > > On Feb 1, 3:39 pm, Shawn Milochik 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 > >>

Re: Searching a file for multiple strings (PS)

2009-02-01 Thread Shawn Milochik
On Sun, Feb 1, 2009 at 1:14 AM, John Machin wrote: > On Feb 1, 3:39 pm, Shawn Milochik 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://un

Re: Searching a file for multiple strings (PS)

2009-01-31 Thread John Machin
On Feb 1, 3:39 pm, Shawn Milochik 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 en

Re: Searching a file for multiple strings (PS)

2009-01-31 Thread Shawn Milochik
On Sat, Jan 31, 2009 at 3:00 PM, Tim Chase wrote: >>> I'm fairly new with python and am trying to build a fairly simple >>> search script. Ultimately, I'm wanting to search a directory of files >>> for multiple user inputted keywords. I've already written a script >>> that can search for a singl

Re: Searching a file for multiple strings (PS)

2009-01-31 Thread Tim Chase
I'm fairly new with python and am trying to build a fairly simple search script. Ultimately, I'm wanting to search a directory of files for multiple user inputted keywords. I've already written a script that can search for a single string through multiple files, now I just need to adapt it to mu