Go Back   CodingForums.com > :: Server side development > Perl/ CGI

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-24-2010, 07:16 PM   PM User | #1
Moloch
New to the CF scene

 
Join Date: Sep 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Moloch is an unknown quantity at this point
Search multiple files output matching lines to new file

Hi,
I am trying to find a way to utilise the full potential of my cpu cores and memory on my windows machine.

Now, I am quite familiar with grep, however, running a Unix based OS is not an option right now.

Unfortunately, the 32 bit grep for windows that I am running, I cannot run multiple instances of it or use the full potential.

Therefore I am trying to create a Perl script using Perl x64 can do the following grep:

Code:
grep -h %search_string% *.txt > retuned_Results.sl
Now, I am having troubles with opening multiple files, one at a time and printing out the line matching the search string.

Any pointers on how I should continue would be greatly appreciated.

Thanks for your assistance.
Moloch is offline   Reply With Quote
Reply

Bookmarks

Tags
grep, line, multiple files, perl, search

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:18 AM.


Advertisement
Log in to turn off these ads.