It's a bit more work, but you might be able to do that with the perl
module Text::Balanced or Text::Autoformat
On Sun, 28 Sep 2003 07:42:48 -0400
Joel Hammer <[EMAIL PROTECTED]> wrote:
> Thanks for the suggestion.
>
> > !Gsed '/^ /d' | fmt -w 130
>
> This doesn't do what I need, however.
>
>
Thanks for the suggestion.
> !Gsed '/^ /d' | fmt -w 130
This doesn't do what I need, however.
The newly formatted document will only contain lines which didn't begin
with a blank. Lines beginning with a blank are deleted.
I did try a sed solution with fmt, though. Please see my post:
"Bug in f
On Sat, Sep 27, 2003, Joel Hammer wrote:
>I want to use fmt in vi to format text, eg:
> :1,$ ! fmt -w 130
>
>Without vi, this command would look like:
> cat file ! fmt -w 130
>
>I want it to format everything except lines which begin with at least
>two blanks, like this:
Extend y
I want to use fmt in vi to format text, eg:
:1,$ ! fmt -w 130
Without vi, this command would look like:
cat file ! fmt -w 130
I want it to format everything except lines which begin with at least
two blanks, like this:
1. My list
First
Second
Third
Is there