#Convert a #multi-line #fasta to a #singleline#fasta $ awk '!/^>/ { printf "%s", $0; n = "\n" } /^>/ { print n $0; n = "" } END { printf "%s", n }' sample1.fa > sample1_singleline.fa
#Convert#fasta file to uppercase/lowercase, without altering the annotation line $ awk '{ if ($0 !~ />/) {print toupper($0)} else {print $0} }' name.fasta