0

I would like to separate one file into two or three files. (Normally, I open .txt file, check the second column and first, if it has different numbers and copy that data to Input a.txt)

**1777777;0;**;0;;;l23;;;;;10.07.2011;
**1777777;0;**;0;;;l24;;;;;11.07.2013;
**1777777;1;**;0;;;777;;;;;17.07.2013;
**1777777;1;**;0;;;333;;;;;12.07.2012;
**1888888;1;**;0;;;444;;;;;10.07.2011;
**1888888;1;**;0;;;555;;;;;10.07.2011;

The output should look like the below:

Output: a1.txt

1777777;0;;0;;;l23;;;;;10.07.2011;
1777777;0;;0;;;l24;;;;;11.07.2013;

Output: a2.txt

1777777;1;;0;;;777;;;;;17.07.2013;
1777777;1;;0;;;333;;;;;12.07.2012;

Output: a3.txt

1888888;1;;0;;;444;;;;;10.07.2011;
1888888;1;;0;;;555;;;;;10.07.2011;
Gareth
  • 19,080
Maris
  • 63

0 Answers0