I have a master fasta file (File_1.fasta), and another fasta file (File_2.fasta). For every instance where the header in File_2.fasta matches the header in File_1.fasta (apart from "/rc"), I would like the header and subsequent sequence in File_1.fasta to be replayed with the header and subsequent sequences from File_2.fasta.
>header1 ATGCCTTCCTCAAAGGGATACG >header2 ATTGGAATTTGCATCCGAGGGC
>header1 ATGCCTTCCTCAAAGGGATACG >header2/rc GCCCTCGGATGCAAATTCCAAT
Are there any tools which will do this? I imagine it can be done with awk but I am not competent enough with awk to do it.