Hi,
fold -- Wrap each input line to fit in specified width.
Summary :
`fold' wrap input lines in each input file and writes the output to
standard output. `fold' counts screen columns by default.
Examples :
$ fold myfile -- Fold each input line at column 80 and print in the
screen/stdout.
$ fold -w 40 myfile > myfile1 -- Fold each input line at column 40 and
the output is redirected to myfile1.
$ fold -s -w40 f1 f2 -- Fold each input line of f1 and f2 at column 40
and folding will happen at space only.
$ fold -b 40 myfile -- Folds at 40th byte place.
$ fold -c 40 myfile -- Folds at 40th character position.
Note:
1) Normally all the above options will give same output. Difference
can be felt only with multi-byte encodings, like UTF-8...
2) A tab may count more than one column, backspace decreases the
column count, and carriage return sets the column to zero.
Read : man fold
manoj
--
"Whom are you?" said he, for he had been to night school. George Ade
Manoj Srivastava <[EMAIL PROTECTED]> <http://www.debian.org/~srivasta/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/nlug-talk?hl=en
-~----------~----~----~----~------~----~------~--~---