Red Hat Linux 9 Professional Secrets [Electronic resources]

Naba Barkakati

نسخه متنی -صفحه : 341/ 217
نمايش فراداده

fold

Purpose

Wrap lines of text to a specified width (the default is 80 characters).

Syntax

fold [options] [

files

]

Options

-b counts bytes instead of columns, so backspaces and tabs are counted.

-s breaks lines at word boundaries.

-w

N (where

N is a number) sets line width to

N characters.

Description

The

fold command wraps each input line to a specified number of characters and displays the results on the screen (standard output). If you do not specify any filename,

fold reads lines from the standard input.