Shell command to split large file into 10 smaller files

后端 未结 4 2103
清歌不尽
清歌不尽 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:15

    The version of split in coreutils 8.8 (not yet released) will have the command

    split -n l/10
    

    For now you'll need to specify a particular number of lines per file

提交回复
热议问题