You can use these commands:
perl -pe 's/>(.*)/>\1\t/g; s/\n//g; s/>/\n>/g' sequences.fa | grep -v '^$'
Explanation:
- View your FASTA file
- Append a tab to every header line
- Join all lines
- Split the single obtained line by the '>' character
- Remove the empty line (the first line is empty due to the fact that '>' is the first character of the FASTA file)
- Append a tab to every header line
- Join all lines
- Split the single obtained line by the '>' character
- Remove the empty line (the first line is empty due to the fact that '>' is the first character of the FASTA file)