Unix Hosting News & Commentary
My Top 3

1)
I have a text file containing 25k search string that I need to search against compressed file. I have used this command but somehow it doesn’t seems to use all the search terms.

I have put one search string per line in the txt file (I clean up the domain name down to just the word ie abc.com to abc).

I have used zgrep –colour=always -nf [name of txt file] name of compressed file

2)
With the same text file 1) , I need to search against a folder containing 50k email messages (.eml format). If the .eml file contains match search string, it will move to another folder. So I can run a batch print later on.

I have both type of email message file, 1) one single file containing multiple messages and 2) 50000 individual email message in .eml format.

The problem with the search, it doesn’t seem to run all the search string contains in the txt file against the target file. It seems only a few lines of search string is used.

Thanks in advance for any tips.

  1. No user reviews yet.


Leave a Reply





Blogroll