Solved

Searching Files for Pattern

Posted on 2013-12-27
7
95 Views
Last Modified: 2014-01-03
Does anyone know of a good utility to search an entire 2003/2008 file server looking for matching patterns in files.   for example to search all files on a files server that have text matching xx-xxx-xxxx (SS#).
0
Comment
Question by:jhunter9999
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 17
ID: 39741881
There was/is a unix command grep which someone wrote a windows version of. If it's been updated it should be what you need. It was very fast and powerful.
0
 
LVL 17
ID: 39741888
Here is a download, looks like it is still current:
 http://www.wingrep.com/
0
 
LVL 20

Expert Comment

by:viki2000
ID: 39742759
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 32

Expert Comment

by:awking00
ID: 39754173
Are you talking about a windows server or something else?
0
 

Author Comment

by:jhunter9999
ID: 39754225
Yes,on a windows 2003/2008.    I'm not looking to search files for exact text such as
54-011-9876, but as a matching pattern.   You ask the utility to find any files with data matching a pattern like xx-xxx-xxxx. This is just an example, it might be other patterns as well.
0
 
LVL 32

Accepted Solution

by:
awking00 earned 250 total points
ID: 39754364
At windows command prompt
findstr /r /s /m /c:"[0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]" *
Will find files with patterns such as 54-011-9876 or 12-345-6789. Unfortunately findstr does not have a means of determining exact number of matches as in most regular expressions (e.g. [0-9]{3} would find 3 consecutive numbers only), so it would also find files with patterns like 123-456-7890 or 12-345-67890.
0
 

Author Comment

by:jhunter9999
ID: 39754414
That works !!
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Since 2008, the stock markets have been in a haphazard state of fluctuation. At times it has been a steep decline (2008) and at others, a steady incline full of promise (2010). Just weeks ago, in August 2011, together we saw the stock markets plunge…
EE introduced a new rating method known as Level, which displays in your avatar as LVL. The new Level is a numeric ranking that is based on your Points. This article discusses the rationale behind the new method and provides the mathematical formula…
Articles on a wide range of technology and professional topics are available on Experts Exchange. These resources are written by members, for members, and can be written about any topic you feel passionate about. Learn how to best write an article t…
Where to go on the main page to find the job listings. How to apply to a job that you are interested in from the list that is featured on our Careers page.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question