dileep
dileep

Reputation: 15

how to split text or csv file(100 thousand) into csv files ( each one contains 10k ) based on the lines count?

how to split text or csv file (100 thousand) into csv files (each one contains 10k lines ) based on the lines count ? Using UNIX script.

Upvotes: 1

Views: 1211

Answers (1)

Grzegorz Żur
Grzegorz Żur

Reputation: 49181

Execute this command

split -l 10000 big.csv

split is part of coreutils package so it is widely available

Upvotes: 5

Related Questions