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 ...

Get SAMS Teach Yourself Unix in 10 Minutes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.