Easily build a great vocabulary without studying! Now on the App Store!
Click here for more info about the app

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.

Tagged w/ #unix #osx #command line #snippets