14.06.2014 Views

Unix Power Tools

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

21.7 offset: Indent Text 396<br />

21.8 Centering Lines in a File 397<br />

21.9 Splitting Files at Fixed Points: split 398<br />

21.10 Splitting Files by Context: csplit 401<br />

21.11 Hacking on Characters with tr 404<br />

21.12 Encoding “Binary” Files into ASCII 406<br />

21.13 Text Conversion with dd 410<br />

21.14 Cutting Columns or Fields 410<br />

21.15 Making Text in Columns with pr 411<br />

21.16 Make Columns Automatically with column 413<br />

21.17 Straightening Jagged Columns 415<br />

21.18 Pasting Things in Columns 416<br />

21.19 Joining Lines with join 417<br />

21.20 What Is (or Isn’t) Unique? 418<br />

21.21 Rotating Text 419<br />

22. Sorting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 421<br />

22.1 Putting Things in Order 421<br />

22.2 Sort Fields: How sort Sorts 422<br />

22.3 Changing the sort Field Delimiter 424<br />

22.4 Confusion with Whitespace Field Delimiters 424<br />

22.5 Alphabetic and Numeric Sorting 426<br />

22.6 Miscellaneous sort Hints 427<br />

22.7 lensort: Sort Lines by Length 429<br />

22.8 Sorting a List of People by Last Name 430<br />

Part V<br />

Processes and the Kernel<br />

23. Job Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435<br />

23.1 Job Control in a Nutshell 435<br />

23.2 Job Control Basics 437<br />

23.3 Using jobs Effectively 438<br />

23.4 Some Gotchas with Job Control 440<br />

23.5 The “Current Job” Isn’t Always What You Expect 442<br />

23.6 Job Control and autowrite: Real Timesavers! 442<br />

23.7 System Overloaded? Try Stopping Some Jobs 443<br />

23.8 Notification When Jobs Change State 444<br />

23.9 Stop Background Output with stty tostop 444<br />

23.10 nohup 445<br />

Table of Contents<br />

xiii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!