UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: fmtmsgAppendix B
Obsolete Commands
Next: Reference: ismpx
 

fold

fold [options] [files]

Break the lines of the named files so that they are no wider than the specified width. fold breaks lines exactly at the specified width, even in the middle of a word.

Options

-b

The line width specifies bytes, not characters. Solaris only.

-s

Break lines after the last whitespace character within the first width characters. Solaris only.

-w n

Create lines having width n (default is 80). (Can also be invoked as -n for compatibility with BSD.)


Previous: Reference: fmtmsgUNIX in a Nutshell: System V EditionNext: Reference: ismpx
Reference: fmtmsgBook IndexReference: ismpx

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