File1 contains a series of comma separated genes:
A,B,C,D,E,F
Output required is the combinations of triplets that can be formed from the series:
ABC
BCD
CDE
DEF
The triplets are formed starting with the first three genes in the first triplet. The second triplet is formed with the second, third and fourth. The second gene of the previous triplet forms the first one of the succeeding triplet. The last triplet shall end with the last gene.