O'Reilly logo

SAMS Teach Yourself Unix in 10 Minutes by Robert Shimonski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The split Command

Now that you know how to find out how much data is in a file, and what that file is comprised of logically to build up its internal structure, we will look at how to take a large file and break it down. The split command will do just that. It will cut down a file into whatever length you specify. To use the split command you need only to know that a file is too large to work with or to send to someone. Once this is determined, you can execute the split command to break it down. To split the file, take the following steps:

1.
Choose your input file that you want to beak down. For example, I still have that boot log that is large, so I will break that down into manageable chunks.
2.
Determine the number of lines you want stored ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required