Grep for Nucleotide FASTA files. Converts IUPAC ambiguous nucleotides to regex.
Request a feature (it's free!)
(sudo) gem install forage
bin/forage.rb sequences.fasta GAAYYAATTACAANA-B > output
This will print any sequence that matches the query. If there is more than one match, then multiple fasta records will be printed (each with an increasing number in the header).