I have a file which is delimetered by ',' i need to filter out a file with respect to the number of fileds in each line.
a,s,d,f,g,h,j,k,l
1,2,3,3,4,5,6,7,6
a,2,3
4,5,6,7
in this
i neeed to filter out the lines with 8 column to another file and rest to another file.
so
a,s,d,f,g,h,j,k,l
1,2,3,3,4,5,6,7,6
will go to first.txt
all the rest should go to second.txt
any help?