· 1 min read

How to Split a Large File Into Smaller Files on OSX or Unix

Use the split command.

split -l 1000 name-of-file output/directory

You can set the number of lines (the "-l" flag) to split on and also the location of where the split files should be saved. Note, the output directory must already exists.

Comments

Leave a comment