Shell command to split large file into 10 smaller files

后端 未结 4 2072
清歌不尽
清歌不尽 2021-02-19 13:16

I have a csv import file with 33 million lines that need to be imported into my database. I can import it with a C# console app but then the stored procedures that run after the

4条回答
  •  臣服心动
    2021-02-19 14:10

    Use split - e.g. to split a file every 3.4 million lines (should give you 10 files):

    split -l 3400000

    $ man split

提交回复
热议问题