I have a fasta file with some junk at the end of many lines, which I would like to remove using sed.
I have tried these formats, but am getting errors inre illegal variable names:
sed -e "s/NNG$//g" sed -e "s/NNG\$//g" sed -e "s/NNG$//g" sed -e "s/NNG+$//g" sed -e "s/NNG*$//g"
I'm stumped. Any advice will be appreciated.