top of page

Last night's tip, discussed AstroGrep, an open source grep utility with some limitations. One of its drawbacks is its inability to export only the results for a search to a text file.


grepWin is another free grep utility, available for download here, from developer Stefan Küng. Like AstroGrep, grepWin is a grep utility with only basic features, which can be used to run regular expression searches in text files and some other types of files but not PDFs. While grepWin will not allow only the regex pattern matches to be exported to a file, it does allow the source files to be edited with find and replace searches. This makes it possible to add delimiters to the source files before and after the regex pattern, so the data can be parsed in Excel later.



Note that you'll need to click Search after having run the Replace operation, so the edited version of the text files will be displayed in the results list in grepWin. You will then be able to save the results by clicking on the small arrow at the bottom right of the screen.




AstroGrep is an open source grep utility, that you can use to run regular expression searches on multiple text files. It's a good alternative to an advanced grep utility such as PowerGrep (see the Tip of the Night for August 4, 2018) but it has some limitations.


AstroGrep has a simpler layout than PowerGrep, and may be easier to use for beginners. Simply select the search path to the folder containing the files you want to review, and then enter the search or regular expression search in the 'Search Text' box. [Be sure to select the 'Regular Expressions' check box.] I tested this evening, and confirmed that it can run complex regex searches accurately.




Unfortunately, AstroGrep will not run searches through PDFs.


Another drawback of using AstroGrep is that it apparently will not export search results which only include the searched for pattern results. The user only has the option of exporting the full line of text on which the search result appears.


Some document databases allow you to use EOS, EOP, EOG search operators. These operators allow a document database user to run a search that will find where multiple strings appear within a set number of sentences, paragraphs, or pages of one another. So, for example a search structured this way:

New York W/3/EOP mortgage

. . . will find documents where 'New York' appears within three paragraphs of 'mortgage'.

The EPA's National Service Center for Environmental Publications Repository is one example of a database in which you can use these search operators. Here we see an example of a search for two phrases within 8 sentences of one another:

The ZyLAB eDiscovery platform, allows you to use these search operators.


Sean O'Shea has more than 20 years of experience in the litigation support field with major law firms in New York and San Francisco.   He is an ACEDS Certified eDiscovery Specialist and a Relativity Certified Administrator.

The views expressed in this blog are those of the owner and do not reflect the views or opinions of the owner’s employer.

If you have a question or comment about this blog, please make a submission using the form to the right. 

Your details were sent successfully!

© 2015 by Sean O'Shea . Proudly created with Wix.com

bottom of page