From Just Great Software
PowerGREP is a powerful Windows grep tool. Quickly search through large numbers of files on your PC or network, including text and binary files, compressed archives, MS Word documents, Excel spreadsheets, PDF files, OpenOffice files, etc. Find the information you want with powerful text patterns (regular expressions) specifying the form of what you want, instead of literal text. Search and replace with one or many regular expressions to comprehensively maintain web sites, source code, reports, etc. Extract statistics and knowledge from logs files and large data sets.
# What You Can Achieve with PowerGREP
PowerGREP offers you a wealth of features that will come in handy in many situations when you want to find information, update or convert files, or extract useful information and statistics. PowerGREP is a knowledge worker's Swiss army knife.
# Find Files and Information
Quickly search across files, folders and archives on your computer or network. Search for words, phrases or binary data. Or use regular expressions to describe the form of what you're looking for, and let PowerGREP find the actual text. Specify as many search terms as you want. Inspect the context of individual search matches, or group identical matches together.
# Maintain and Convert Files with Search and Replace
Search and replace through heaps of files without opening them first. Preview the replacements without modifying any files. Make complex replacements or conversions with regular expressions. Replace or revert individual search matches at your leisure. Work safely with flexible backup and undo options.
# Extract and Collect Information and Statistics
Gather statistics and extract data from files, archives and logs. Collect search matches into one or more new files. Use regular expressions to describe the form of the text you want to extract, and let PowerGREP collect all or part of the match. Sort matches, and group identical matches and count them, to produce informative statistics.
# PowerGREP's Unique Abilities
PowerGREP has a wide range of capabilities you won't find in any other Windows grep tool. While you will use some of these features only occasionally, they will surely save you a lot of time and tedious manual editing on many occasions.
# Regular Expression Lists
Apply any number of search terms of regular expressions sequentially or concurrently. Complex search and replace operations often require multiple steps. Use PowerGREP to execute as many steps as you want in a single operation. Run the steps concurrently (search matches won't overlap), or sequentially (replacements cascade onto the following steps). Save all steps into a single PowerGREP Action for instant reuse.
Similarly, while searching or collecting data, use a list of search terms or regular expressions to find files matching different criteria, or to extract disparate information from each file.
# Slice and Dice Files Any
A number of command line parameters were added. Previously, context could only be set from the command line by loading a .pga file. Now the most common context options have direct command line parameters. You can use /context followed by none, context or line to set the "context type" to "no context", "use sections as context", or "use lines as context". When using any option other than none, you can use /contextextra lines 2 3 to have two lines of extra context before and three lines after each match. Both numbers must be specified. Set them to zero if you do not want context before or after.
The /reuse parameter tells PowerGREP to reuse a previous PowerGREP instance, if there is one, and if it isn't busy executing an action or sequence. You can add this parameters to shortcuts for launching PowerGREP if you want to avoid unnecessarily starting new instances. If there are no running PowerGREP instances or they're all busy executing something then the /reuse parameter is ignored and a new instance is started.
PowerGREP 4.0.0 introduced the /silent parameter to execute PowerGREP actions without showing PowerGREP's user interface. Version 4.1.0 adds the /noundo and /noundomanager parameters. These can only be used in combination with /silent. The /noundo parameter tells PowerGREP not to save any undo information for the action, even when the action creates backup files. You should only use this parameter if you know for sure you won't need PowerGREP's undo history feature to clean up the backup files or undo the action. The /noundomanager parameter should be followed by the full path of a .pgu file. PowerGREP will save the undo history for the action directly to that file, without using the undo manager. If the file does not exist it is created. Normally PowerGREP uses the undo manager to allow multiple PowerGREP instances to share a single undo history. When bypassing the undo manager you must make sure only one PowerGREP instance uses the same .pgu file at any time.