I have a csv file
abc,ds,adsa
bca,sds,ds
cdf,ds,sds
abk,sds,ds
I want this file to be split in two files only where one should have all values of first column valuestart with "ab", and rest in other file. My final output should be
file1.csv as
abc,ds,adsa
abk,sds,ds
file2.csv as
bca,sds,ds
cdf,ds,sds
Timely help will be highly appreciated.