Wizard Boot Camp, Part 10: Utilities You Should Know
The time has come to leave Hogwarts, young wizard! We wrap up our ten-part series on becoming a command-line wizard with a look at more utilities you should know.
Thursday, September 25th, 2008
We wrap up the Wizard Boot Camp series with a third and final article about utility programs that you should know about — and some not-so-obvious ways to use them.
csplit, split
Some large files — including archives, multipart email messages, business information for a large set of customers, and data files with repeating patterns — may need to be split into smaller “chunks” for reorganization, easier storage or transport. That’s what csplit(1) is for. Give it a pattern, an offset, a repetition count, and/or a line number, and it will parse an input file into a series of smaller output files.
By default, csplit’s output files are named xx00, xx01, and so on. To rearrange a big file, you can simply cat those output files together in a different order. Here’s a simple example using the shells’ curly-brace operators:
$ csplit...
Please log in to view this content.
Read More
- The State of Open Source System Automation
- Are You Expecting? Your Boss Should Know
- The Persistence of Time
- NTP: Timing is Everything
- Disk Space: The Final Frontier
|