So I want to look at the last 400000 lines of a debug file… it’s a unix site, so it’s easy.
tail –n400000 filename.log > shannon.log
shannon.log now contains the last 400000 lines of the filename.log file.
Now I want the next 400000 lines, easy again.
tail –n800000 filename.log |head –n400000 > shannon.log
shannon.log now has the penultimate 400000 line chunck of the file.
Nice, and I can keep chopping it up like that!
No comments:
Post a Comment