PDA

View Full Version : splitting up a large text file


pdstein
06-13-2003, 11:06 AM
Is there a Linux command that will split up a large text file into several smaller text files?

Arthur
06-13-2003, 11:34 AM
Yes, you can use 'split' to split up files.

Basic usage: split filename.txt
For options see: man split
(press q to exit, space to scroll)

You can of course also compress text files if they're too big;
zip zipfilename filename.txt
or
gzip filename.txt

(there are of course more options)

HTH,
Arthur