[EMAIL PROTECTED] wrote:
> Does anyone have a simple one-liner that can take a file
> of text and reformat each paragraph to a new column width?
This *may* work for you (for column width of 70.)
perl -n00e'tr/\n/ /; print "$1\n" while s/^(.{0,69}\S)\s+//; print "\n"'
John
--
Perl isn't a toolbox, but a small machine shop where you can special-order
certain sorts of tools at low cost and in short order. -- Larry Wall
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/