I have a txt file that looks like this
a,b,c
0,0,0
0,0,0
*
x,y,z
1,1,1
1,1,1
*
u,v,w
9,9,9
9,9,9
*
I would like to save every three lines excluding the asterisk into csv files so my csv files look like this.
0.csv
a,b,c
0,0,0
0,0,0
1.csv
x,y,z
1,1,1
1,1,1
2.csv
u,v,w
9,9,9
9,9,9
Is there any efficient way to do this? Thank you so much.