I have below records in the source csv file and need to split into two files based on Column A using windows cmd
.
Input:
4000,XXX,X11 1000,YYY,Y11 3000,ZZZ,Z11 4300,XXX,X12
Output:
File 1: (File 1 should be based on the column A where the values are starting with 4
. Ex - 4000
and 4300
)
4000,XXX,X11 4300,XXX,X12
File 2: Other records.
1000,YYY,Y11 3000,ZZZ,Z11