TECH SOLUTIONS

Click here to edit subtitle

Forums

Post Reply
Forum Home > Unix Learnings > Unix: Split a large file into small files

Sourav Gulati
Site Owner
Posts: 83

split command can be used to split a large file into small files.

Options:

-b : Split files based on size

-l: Split file based on number of lines


Example:


Split the file into 20 MB pieces


$ split -b 20M filename


Split the file based up on the number of lines


$ split -l 1500  filename

--


March 22, 2013 at 7:24 AM Flag Quote & Reply

You must login to post.