Skip to main content

Grep huge files with TextPipe Pro. TRY IT FREE

textpipepro_box Buy Download 
  • Extract matching lines or non-matching lines
  • Extract context lines on either side of the match
  • Handle huge multi-Gigabyte files
  • Include line numbers and filenames
  • Run overnight via command line or scripting
  • and more!

Unlike other grep tools which only support the difficult to understand 'perl-style' patterns, TextPipe supports the EasyPattern pattern matching language, which makes it really easy for beginners to locate, capture and extract text.

You'll find the main Grep features under Filters\Special\Retain matching lines, and Filters\Remove\Remove matching lines. You can apply one or more grep filters in sequence to get the desired result.

How grep works in TextPipe

Grep searches text line by line and keeps or discards the lines that match a pattern. In TextPipe, Retain matching lines keeps only the lines that match, and Remove matching lines discards them. Because each filter passes its result to the next, you can chain several greps. For example, keep every line containing "ERROR", then remove the lines containing "ERROR 404", and you are left with the failures that matter.

Example: searching a web server log

A 6 GB access log holds millions of requests, and you need the failed logins from one day with two lines of context before each hit.

Filter 1: Retain matching lines   pattern: 12/Mar/2024 .* POST /login .* 401
Options:  context lines before = 2, include line numbers and filename

Output:
access.log(482113): 10.0.0.7 - - [12/Mar/2024:09:14:02] GET /login
access.log(482114): 10.0.0.7 - - [12/Mar/2024:09:14:05] POST /login 401

The same filter list can be saved and run overnight from the command line, so a daily log review needs no manual work.

EasyPattern or regular expressions

You can write the match pattern as a classic regular expression, or in the EasyPattern language, which reads like plain English. For instance, an EasyPattern such as "ERROR" whitespace digits matches the word ERROR followed by spaces and a number, with no escape characters to remember. Both styles are available in every grep filter, so you can use whichever your team already knows.

Other uses

Related pages

Grep filters work on CSV data and on converted mainframe files. See the data mining solutions page for larger extraction projects and the government case study for an example of searching very large archives. For finding text inside Word documents rather than text files, use WordPipe, and for Excel workbooks see ExcelPipe.

Like us...you'll find yourself using TextPipe again and again for all kinds of text-processing tasks.

Try it now for free. Setup takes only 1 minute

Installing TextPipe is a simple process that takes only 1 minute.

Download

Need To Grep Right Now?

We offer a 90-day money back guarantee, and accept payment online via credit card, and offline via check, wire and purchase order.

Buy

Need More Information About TextPipe Pro?

Please click here.

Ask Us a Question!

Your full name (required):


Your email address (required):


Your question:

Buy Download