How to: Search multiple files for multiple words/phrases

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

How to: Search multiple files for multiple words/phrases

Post by DataMystic Support »

TextPipe is designed to search and replace rather than just search.

However, you can also use it to search for phrases using Filters\Extract\Extract lines matching (grep) – and you can also get context lines before and after, file names and line numbers, just by checking the options.

With the pattern type set to 'Pattern (perl)', or 'Pattern (egrep)', specifying one or more words or phrases like this:

Code: Select all

invoice|purchase order|quote
With the pattern type set to 'Pattern (EasyPattern)', specifying one or more words or phrases like this:

Code: Select all

invoice[or]purchase order[or]quote
The trick is to send the output to the clipboard or a new file using the Output Filter at the bottom of the filter tree.
Post Reply