Find files that don't contain a specified string

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
Nick
Posts: 49
Joined: Fri Aug 22, 2003 7:12 am
Location: Newcastle under Lyme, UK
Contact:

Find files that don't contain a specified string

Post by Nick »

How could I return all files that don't contain a specified string?
Cheers, Nick
www.square-sun.net
ben_josephs
Posts: 2457
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

I don't believe TextPad can do this.

You can do it with the command-line utility grep, of which there are many versions for Windows, including
http://www.gnu.org/software/grep/
which is free.
Use the option -L (print only names of files containing no match).

There are also GUI versions (of which I know nothing), such as
http://www.wingrep.com/
which is not free.
Post Reply