I have run Panaroo on 160 genomes and as one of the outputs I have received single gene alignments files for each gene in all of the genomes they are present in. I wish to concatenate several of these files in a way such that within the concatenated files, sequences which originated from the same genome are concatenated together. What is a simple way of achieving this using R or the linux terminal?