How to split a huge csv file based on content of first column?

后端 未结 7 2095
一个人的身影
一个人的身影 2020-12-01 17:01
  • I have a 250MB+ huge csv file to upload
  • file format is group_id, application_id, reading and data could look like


        
7条回答
  •  南笙
    南笙 (楼主)
    2020-12-01 17:40

    awk is capable:

     awk -F "," '{print $0 >> ("FILE" $1)}' HUGE.csv
    

提交回复
热议问题