Or you might want to just retrieve a particular set of lines from a file.
Enter split, wc, tail, cat, and grep.
(don’t forget sed and awk).
Linux contains a rich set of utilities for working with text files on the command line.
For our task today we will use split and wc.
That’s kinda big… but how many lines are we dealing with?
If we wanted to import this into Excel, we would need to keep it less than 65k lines.
wc -l access.log146330 access.log
We’re way over our limit.
We’ll need to split this into 3 segments.
We’ll use the split utility to do this.
The last file contains the leftover amount.