Solved

Searching Files for Pattern

Posted on 2013-12-27
7
92 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
Comment Utility
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
Comment Utility
Here is a download, looks like it is still current:
 http://www.wingrep.com/
0
 
LVL 20

Expert Comment

by:viki2000
Comment Utility
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 31

Expert Comment

by:awking00
Comment Utility
Are you talking about a windows server or something else?
0
 

Author Comment

by:jhunter9999
Comment Utility
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 31

Accepted Solution

by:
awking00 earned 250 total points
Comment Utility
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
Comment Utility
That works !!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

This is a quick article, and by no means should you quit your job today or plan to feed your family of 5 on a business idea. Starting a business takes work. This article will only give you the basic skeleton of understanding. Going into business for…
Surprisingly, there is a lot to Gym battles, and I thought it would be helpful to share knowledge about all the ins and outs of this feature!
The Bounty Board allows you to request an article or video on any technical topic, or fulfill a bounty request to earn points. Watch this video to learn how to use the Bounty Board to get the content you want, earn points, and browse submitted bount…
Saved searches can save you time by quickly referencing commonly searched terms on any topic. Whether you are looking for questions you can answer or hoping to learn about a specific issue, a saved search can help you get the most out of your time o…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now