And Why Not?
Neatening Text with fmt
Alternatives to fmt
Clean Up Program Comment Blocks
Remove Mail/News Headers with behead
Low-Level File Butchery with dd
offset: Indent Text
Centering Lines in a File
Splitting Files at Fixed Points: split
Splitting Files by Context: csplit
Hacking on Characters with tr
Encoding "Binary" Files into ASCII
Text Conversion with dd
Cutting Columns or Fields
Making Text in Columns with pr
Make Columns Automatically with column
Straightening Jagged Columns
Pasting Things in Columns
Joining Lines with join
What Is (or Isn't) Unique?
recomment (Section 21.4), a script for reformatting comment blocks within programs and scripts
behead (Section 21.5), a script for removing the headers from mail and news messages
center (Section 21.8), a script for centering lines of text in a file
In addition, there are a number of programs that provide some useful ways of modifying files but that you don't normally think of as editors:
tr (Section 21.11) lets you substitute one character for another -- including non-printing characters that you specify by their octal values.
This chapter covers all that and more.
Copyright © 2003 O'Reilly & Associates. All rights reserved.