Hi. I have a file like below.
Sequence A.1.1 Bacteria
ATGCGCGATATAGGCCT
ATTATGCGCGCGCGCSequence A.1.2 Virus
ATATATGCGCCGCGCGTA
ATATATATGCGCGCCGGCSequence B.1.21 Chimpanzee
ATATAGCGCGCGCGCGAT
ATATATATGCGCGSequence C.21.4 Human
ATATATATGCCGCGCG
ATATAATATC
I want to make separate files for sequences of category A, B and C from one single file. Kindly suggest some reading material for breaking this code. Thanks. The output should be three files, one for 'A', second file for Sequences with 'B' and third file for sequences with 'C'.