Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Format text to 80 columns

1 view
Skip to first unread message

Erik Hahn

unread,
Oct 2, 2008, 11:03:43 AM10/2/08
to
Hi,

is there any way to format a text to fit into 80 columns (with sed, awk
or the like)?

-Erik

--
hackerkey://v4sw5hw2ln3pr5ck0ma2u7LwXm4l7Gi2e2t4b7Ken4/7a16s0r1p-5.62/-6.56g5OR

Grant Edwards

unread,
Oct 2, 2008, 11:12:29 AM10/2/08
to
On 2008-10-02, Erik Hahn <erik...@replyto.invalid> wrote:
> Hi,
>
> is there any way to format a text to fit into 80 columns (with sed, awk
> or the like)?

$ man fmt

--
Grant Edwards grante Yow!
at BI-BI-BI-BI-BI-BI-BI-BI
visi.com

Michael Schindler

unread,
Oct 2, 2008, 11:25:48 AM10/2/08
to
Erik Hahn wrote:

> Hi,
>
> is there any way to format a text to fit into 80 columns (with sed, awk
> or the like)?
>
> -Erik
>

try fold

Joachim Schmitz

unread,
Oct 2, 2008, 12:13:44 PM10/2/08
to
Erik Hahn wrote:
> Hi,
>
> is there any way to format a text to fit into 80 columns (with sed,
> awk or the like)?

man pr

pr -w 80 <fileA >fileB

Bye, Jojo


Erik Hahn

unread,
Oct 2, 2008, 12:25:49 PM10/2/08
to

Thanks, everyone!


--
hackerkey://v4sw5hw2ln3pr5ck0ma2u7LwXm4l7Gi2e2t4b7Ken4/7a16s0r1p-5.62/-6.56g5OR

Florian Diesch

unread,
Oct 2, 2008, 2:21:47 PM10/2/08
to
Erik Hahn <erik...@replyto.invalid> wrote:

> is there any way to format a text to fit into 80 columns (with sed, awk
> or the like)?

man fmt


Florian
--
<http://www.florian-diesch.de/>
-----------------------------------------------------------------------
** Hi! I'm a signature virus! Copy me into your signature, please! **
-----------------------------------------------------------------------

Lew Pitcher

unread,
Oct 5, 2008, 4:23:08 PM10/5/08
to
On October 2, 2008 11:03, in comp.os.linux.misc, Erik Hahn
(erik...@replyto.invalid) wrote:

> Hi,
>
> is there any way to format a text to fit into 80 columns (with sed, awk
> or the like)?

Try the fold(1) ("man 1 fold") utility.

FOLD(1) User Commands FOLD(1)

NAME
fold - wrap each input line to fit in specified width

--
Lew Pitcher

Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------


0 new messages