Skip to main content
2 of 2
Use code block not rmarkdown formatting
llrs
  • 4.7k
  • 1
  • 19
  • 42

You could try it with sed.
Replace all lower-case chars with - in lines not starting with >:

sed -e '/^>/!s/[a-z]/-/g' in.fa