L
L
Light7772015-04-07 15:17:14
Software and Internet Services
Light777, 2015-04-07 15:17:14

What are the programs for dividing a large CSV file into small ones?

What are the programs for dividing a large CSV file into small ones?
There is a csv file with 2 million entries. You need to split it into small ones. Downloaded on the Internet. but there appear shifts in some, Cyrillic does not work in some.
What can you advise?
Amendment!!! I need exactly the application, this program will be used by the humanities)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
Cha Chochu, 2015-04-07
@banana_power

split -l 1000 file_name
Will split the file into 2000 files of 1000 lines.
Ah, well then Excel.

M
Max, 2015-04-07
@AloneCoder

split by 100000 lines
awk 'NR%100000==1{x="F"++i;}{print > x}' file

S
SilentFl, 2015-04-07
@SilentFl

head | tail is our entire
example of writing lines 20-40 to a separate file:
head -n40 res.csv | tail -n20 > res20_40.csv

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question