TextPipe: Online Help
    Restrict matching lines (Grep)
 

Submit feedback on this topic 

 Home  User Assistance   Tutorials   How to Use TextPipe
 Menus: File   Edit   Filters[ Wizards  Convert   Unicode   Add   Remove   Replace   Extract   Special   Maps   Restrict ]  Tools   Window   Help   Advanced
Home
Up

 

 

(Pro version only)

This filter restricts sub filters to operate on lines that match a pattern or regular expression

Note: This filter allows you to use the regular expression characters, ^ and $.

^ match from the start of a line (or at the start of the file)

$ match at the end of a line (or at the end of the file)

Restrict to Lines Matching

The string or pattern to find. The string can be found anywhere on a line. The right-click (or context) menu on this field supports Undo, Cut, Copy, Paste, Delete, Clear Entire Field, Select All and Select All And Copy, entering special characters and inserting pattern match characters.

Pattern type

Determines which style of pattern match to use. The default is to use powerful perl-style pattern matching, but you can also use newer and easier EasyPatterns, as well as Word-style and Brief-style patterns. Older egrep-style pattern matching is offered for backward compatibility.

Match Case

When checked, the case of the string found must be identical to the Match Pattern exactly.

Output Count of Matches

When checked, outputs a count of the number of matches in each file instead of the actual matches.

Include Filename

When checked, outputs the filename prior to showing the match information.

Include Line Numbers

When checked, shows the line numbers of each match with the match text.

Context Lines

Context Lines Before the Match

This option outputs context lines prior to the matching line. This can be very useful when you want to see the lines surrounding a matching line. Enter a value larger than 0 to determine the number of context lines to be output. TextPipe may not be able to output the desired number of context lines before the matching line if the matching line is near the start of the file. In this case TextPipe will output as many prior context lines as are available. Note also that if two subsequent lines match then the resulting output may be difficult to understand.

Context Lines After the Match

This option outputs context lines after the matching line. This can be very useful when you want to see the lines surrounding a matching line. Enter a value larger than 0 to determine the number of context lines to be output. TextPipe may not be able to output the desired number of context lines after the matching line if the matching line is near the end of the file. In this case TextPipe will output as many trailing context lines as are available. Note also that if two subsequent lines match then the resulting output may be difficult to understand.

See also

Extract matches
Restrict to non-matching lines
Restriction filters

 Contact Us   Support   Community   Tutorials and User Guides (online)
 Copyright © 1999-2006 DataMystic. All rights reserved.