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};'
--
[EMAIL PROTECTED] mailing list
