Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Searching Files for Pattern

Posted on 2013-12-27
7
Medium Priority
?
109 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 21

Expert Comment

by:viki2000
ID: 39742759
0
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.

 
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 1000 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

If you want to move up through the ranks in your technology career, talent and hard work are the bare necessities. But they aren’t enough to make you stand out. Expanding your skills, actively promoting your accomplishments and using promotion st…
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
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.
Suggested Courses

972 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