UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: catChapter 2
UNIX Commands
Next: Reference: cc
 

cb

cb [options] [files]

C program "beautifier" that formats files using proper C programming structure.

Options

-j

Join split lines.

-l length

Split lines longer than length.

-s

Standardize code to style of Kernighan and Ritchie in The C Programming Language.

-V

Print the version of cb on standard error.

Example

cb -l 70 calc.c > calc_new.c


Previous: Reference: catUNIX in a Nutshell: System V EditionNext: Reference: cc
Reference: catBook IndexReference: cc

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