Split text file into multiple files using windows batch scripting

Viewed 27672

I need to split one text file into multiple files using windows batch script, could anybody light me up?

sample text file:

abc1-10
abc1-11
abc1-12
xyz2-01
xyz2-02
xyz3-01
xyz3-02

in this case, it has to split into 3 files, first one consists the lines abc1-xx, second one consists xyz2-xx and xyz3-xx go to the last one

3 Answers
Related