Thanks Pierre.
I linearized the fasta file using awk '/^>/ {printf("%s%s\t",(N>0?"\n":""),$0);N++;next;} {printf("%s",$0);} END {printf("\n");}' input.fasta > output.fasta
and then used the awk command, awk -F '\t' '!($2 ~ /\*/)' input.fasta > output.fasta. This gives complete filtration of the * character from my file.
So then whats the tr command for???
Assuming that the file has linearized aa sequences in fasta format, following is the code with short example sequences with stop codon at different places:
code:
output: