Written by Sean Behan on Tue Oct 08th 2013

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 with..
#Unix #OSX #Command Line #Snippets

Just finishing up brewing up some fresh ground comments...