home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: cof2elf Chapter 2
UNIX Commands
Next: Reference: comb
 

col



col

 [

options

]

A postprocessing filter that handles reverse linefeeds and escape characters, allowing output from tbl (or nroff, occasionally) to appear in reasonable form on a terminal.

Options

-b

Ignore backspace characters; helpful when printing man pages.

-f

Process half-line vertical motions, but not reverse line motion. (Normally, half-line input motion is displayed on the next full line.)

-p

Print unknown escape sequences (normally ignored) as regular characters. This option can garble output, so its use is not recommended.

-x

Normally, col saves printing time by converting sequences of spaces to tabs. Use -x to suppress this conversion.

-h

Save printing time by converting sequences of spaces to tabs.

Examples

Run file through tbl and nroff, then capture output on screen by filtering through col and more :



tbl 



file

 | 

nroff

 | 

co

l | 

more

Save man page output in file .print , stripping out backspaces (which would otherwise appear as ^H):



man 



file

 | col -b > 

file



.print


Previous: Reference: cof2elf UNIX in a Nutshell: System V Edition Next: Reference: comb
Reference: cof2elf Book Index Reference: comb

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System