Link to home
Start Free TrialLog in
Avatar of Tom Knowlton
Tom KnowltonFlag for United States of America

asked on

perl script to search for files containing text

Is there a ready-made perl script that can search all files on a hard drive and create a list of the files that contain a search string?

Something like:

C:\perl findstring.pl "The quick fox ran"

then a file gets created, 2016_03_25_FoundFiles.txt, for example, that contains full paths to the files that matched:

The string "The quick fox ran" was found in these locations:

C:\testfile1.txt

C:\Windows\System32\anothertestfile.txt

and so forth and so on...

I need this specific ability, but also recommendations on good websites that are perl script centric.

(in a Windows environment, Windows 8.1, if it matters.  I just installed Strawberry Perl and have been experimenting)
ASKER CERTIFIED SOLUTION
Avatar of wilcoxon
wilcoxon
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tom Knowlton

ASKER

I'll checkout cygwin!  Thank you.
Thanks