bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: sed : * final newline


From: Paolo Bonzini
Subject: Re: sed : * final newline
Date: Tue, 8 Jul 2003 23:09:41 +0200

> > Yes, I know this.  The problem is that this does not affect only `sed :'
> > but also `sed 10,$!d' and the like.
>
> this one is OK: remove the first 9 lines, preserving everything else.
> If the last line did not end with newline, the last line of the output
> looks the same way.

Yes.  Changing to always append the new line does not affect only a
curiosity like sed : or sed -n p, but also real sed commands.

> What about at least turning this feature off whenever the number of input
> files is > 1 ?

No, just put the first line of the next file in newline-before mode.

Paoo






reply via email to

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