Tom Knowlton
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\anothe rtestfile. 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)
Something like:
C:\perl findstring.pl "The quick fox ran"
then a file gets created, 2016_03_25_FoundFiles.txt,
The string "The quick fox ran" was found in these locations:
C:\testfile1.txt
C:\Windows\System32\anothe
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
ASKER