How to split one text file into multiple *.txt files?

前端 未结 9 633
[愿得一人]
[愿得一人] 2020-12-07 17:39

I got a text file file.txt(12 MBs) containing:

something1
something2
something3
something4
(...)

Is there any way to split

9条回答
  •  执念已碎
    2020-12-07 18:03

    John's answer won't produce .txt files as the OP wants. Use:

    split -b=1M -d  file.txt file --additional-suffix=.txt
    

提交回复
热议问题