in reply to grep not equal

I am wondering why you dont use BioPerl BLAST. Seems to me you are looking for a solution that is already solved. site: http://www.bioperl.org/wiki/BLAST