Split Large File in Bash

| Comments

When you are dealing with large file, it’s complicated to share or manipulate them.

On linux the split command can be useful for you.

Basic Usage :

$ split [-l] [-b] filename prefix

For example, if you want to split a large file named “clients.csv” and create files with 100k records / file, apply the following command:

$ split -l 100000 clients.csv splitted_clients-
“splitted_client” is the prefix applied to each generated files