Solved

Searching Files for Pattern

Posted on 2013-12-27
7
97 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 21

Expert Comment

by:viki2000
ID: 39742759
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

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

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Whether you believe the “gig economy,” as it has been dubbed, is the next big economic paradigm shift (https://www.theguardian.com/commentisfree/2015/jul/26/will-we-get-by-gig-economy) or an overstated trend (http://www.wsj.com/articles/proof-of-a-g…
Notifications on Experts Exchange help you keep track of your activity and updates in one place. Watch this video to learn how to use them on the site to quickly access the content that matters to you.
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.

729 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