View Single Post
  #2  
Old 05-13-2013, 11:36 PM
Adachi Adachi is offline
Skeleton


Join Date: Sep 2010
Posts: 19
Default

Under Unix you can use the split command.

Code:
split -l 1000000 file.txt
This would split the file every 1,000,000 lines into files named 'xaa', 'xab', 'xac', etc..

And if you need to rejoin the files after editing them, simply use 'cat'

Code:
cat xaa xab xac > newfile.txt
But if you just want to view the file, I'm pretty sure 'less' would work.

Oh, and vim > *
[You must be logged in to view images. Log in or Register.]
Last edited by Adachi; 05-13-2013 at 11:45 PM..