Page 1 of 1

Search Question

Posted: Mon Jan 19, 2004 11:26 pm
by dforrest
Can I use TextPad to find files NOT containing a particular string?

Re: Search Question

Posted: Wed Jan 28, 2004 3:42 am
by schnitzi
dforrest wrote:Can I use TextPad to find files NOT containing a particular string?

How can you use TextPad to do that? Use it to write a program
that does it. ;-)

Seriously, I think that may be the only way...

Re: Search Question

Posted: Mon Feb 16, 2004 11:03 am
by bveldkamp
dforrest wrote:Can I use TextPad to find files NOT containing a particular string?
Find a pc version of grep and add it as a tool to textpad, I believe it's included with the NT or 2K Resource kit, or maybe somewhere on microsoft.com (powertools or powertoys or whatever they call it)
grep -v finds files not containing a certain string.

Posted: Mon Feb 16, 2004 2:55 pm
by talleyrand
You actually don't even have to do that much work. There is a command on at least Windows 2000 called 'find' find /v "someString" will show every line not containing it.

Posted: Mon Feb 16, 2004 3:26 pm
by bveldkamp
talleyrand wrote:You actually don't even have to do that much work. There is a command on at least Windows 2000 called 'find' find /v "someString" will show every line not containing it.
Whoops, forgot about that one. Guess I should have checked my DOS 2.0 command reference :oops: