I know the windows solution.
- Combine all fasta to a single fasta.
a. Keep all fasta in single folder (I assume they have .fasta extension
b. Open cmd and go to that folder
c. run
copy *.fasta merged.txt
let the commands run and close cmd. rename the merged.txt file to merged.fasta
Convert to tab and open in excel.
Convert it in fabox or fasta2tab
Do the math in excel
a. open file in excel
b. assuming headers are in col a and sequences in col b, type this in col c1(including "=" sign
= if(countif(b1,"*NADH*")=0,0,1)
This will give 1 if the sequence initiates with NADH. 4 represents count for search string in this case 4 as NADH makes 4 alphabets.
c. Filter col c for value 1
d. Copy the first 2 columns and make a txt file out of it. Convert this tab file to fasta using Tab to fasta sequence converter.