#!/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."