On 00:02 Wed 26 Sep , Stephen Bennett wrote:
> On Tue, 25 Sep 2007 11:10:34 +0200
> Robert Buchholz <[EMAIL PROTECTED]> wrote:
>
> > I already wondered a while back:
> > sed only fails if the file does not exist, but not if there was no
> > replacement. Is there any way to force it to?
>
> Off the top of my head...
>
> sed -e '1{x;s/^/0/;x;ta;:a}'
> -e 's/$STRING/$REPLACEMENT/'
> -e 'Tb;x;s/^/1/;x;:b;${p;x;/^0/Q1;Q0};'
I spent a few minutes trying to decipher that without luck. Could you
walk me through it?
Thanks,
Donnie
--
[EMAIL PROTECTED] mailing list