Huh?
I have thousands of search terms in one file to search against a database. I'm simply trying to find out how many times each search term appears in the database
Does this mean that you're dumping out the content of a SQL database to file and then using grep to search the data?
You realise this defeats the entire purpose of having a database, right? Assuming your database is correctly indexed (and you have sufficient RAM), you should be able to run a query that gives you exactly what you want in a fraction of the time it takes to even dump out the entire table(s) for external processing
In reply to Re^3: Nested greps w/ Perl
by SimonPratt
in thread Nested greps w/ Perl
by wackattack
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |