bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coreutils / fmt: adding newline at end of paragraph


From: Karl Eichwalder
Subject: Re: coreutils / fmt: adding newline at end of paragraph
Date: Wed, 29 Oct 2003 19:31:13 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Paul Eggert <address@hidden> writes:

> fmt -s does part of what you want.

Yes, thanks for pointing out.

> It sounds like you'd like another convenience option to fmt, an option
> that causes fmt to behave as if every nonempty pair of adjacent input
> lines was separated by an empty line.  If we call that option -e, say,
> then "tr -d '\15' <$f | fmt -e" would do what you want.  -e would
> imply -s.

Yes, and where one empty line already occurred, fmt sould add another
one.  This way it would be possible to convert back files to the long
line format.

Of course, adding empty lines at the end of a file must not happen.

-- 
                                                         |      ,__o
                                                         |    _-\_<,
http://www.gnu.franken.de/ke/                            |   (*)/'(*)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]