Entering edit mode
22 months ago
SaltedPork
▴
170
Hi, my files all have 2 fasta entries and they look like:
>ID.1
GTAACACGACATCCTGCAGGGTTAAAAAAGAAAAAATCAGTAAAAGTACTGGA
>ID.2
GGAATACCACATCCCGCAGGGTTAAAAAAGAAAAAATCAGTAACAGTACTGGA
My desired output looks like:
>ID.2
GGAATACCACATCCCGCAGGGTTAAAAAAGAAAAAATCAGTAACAGTACTGGA
>ID.1
GTAACACGACATCCTGCAGGGTTAAAAAAGAAAAAATCAGTAAAAGTACTGGA
I have looked into awk/sed and the only solutions involve cutting/pasting rows into a sperate file and then moving them back, is there an alternative way?