in reply to Re^2: Nested greps w/ Perl
in thread Nested greps w/ Perl
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Nested greps w/ Perl
by wackattack (Sexton) on Dec 20, 2016 at 16:21 UTC | |
by kennethk (Abbot) on Dec 20, 2016 at 17:07 UTC | |
by wackattack (Sexton) on Dec 20, 2016 at 22:44 UTC | |
by BrowserUk (Patriarch) on Dec 20, 2016 at 18:33 UTC |