Our Sponsors



Download BioinformaticsOnline(BOL) Apps in your chrome browser.




Bash script to convert Multi-line Fasta to Single-line Fasta !

  • Public
By BioStar 288 days ago
#!/bin/bash input_filename="multi_line.fasta" output_filename="single_line.fasta" awk '/^>/ {printf("\n%s\n", $0);next; } { printf("%s", $0);} END {printf("\n");}' "$input_filename" > "$output_filename" echo "Successfully converted $input_filename to $output_filename in single-line FASTA format."