Jun 12, 2009

Splitting file


This
would split the file "newfile.txt" into three separate files called newaa, newab and newac each file the size of 22 :

split -b 22 newfile.txt new

This
would split the file "newfile.txt" into files beginning with the name "new" each containing 300 lines of text each :

split -l 300 file.txt new