Can you help me to split a file that looks like the following into two files depending on the second column (groups starting with value 1 plus the following 2 lines should be in one file and groups starting with value 0.1 plus the following 2 lines should be in the second file):
A 1
A 10
A 100
B 0.1
B 1
B 10
C 1
C 10
C 100
D 0.1
D 1
D 10
Expected output file 1:
A 1
A 10
A 100
C 1
C 10
C 100
Expected output file 2:
B 0.1
B 1
B 10
D 0.1
D 1
D 10
Kind regards!!