I have a large CSV file (7.3GB; 16,300,000 lines), how can I split this file into two files?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have you taken a look at the
splitcommand? See this man page for more information.This page contains an example use of this command.
Aside:
the
man -kcommand is rather useful for finding unix/linux commands if you aren’t quite sure what the specific command is. Specify a keyword with the man -k command and the system will pull out related commands. E.g.,will yield: