On Sun, Sep 18, 2005 at 11:35:49PM +0200, Steffen Kowalski wrote:
Hallo Lug,
es ist vermutlich schon etwas zu spät (für mich), aber ich versuche gerade eine entity Übersetzung, welche nicht will:
echo "ha ?>" | sed 's/?>/?>/'
echo "foo ?>" | sed 's#?>#?>#'
ergibt: ha ??>gt;
foo ?>
wenn es das ist, was du willst.
seife@strolchi:~> man sed | grep -C3 & s/regexp/replacement/ Attempt to match regexp against the pattern space. If success‐ ful, replace that portion matched with replacement. The replacement may contain the special character & to refer to that portion of the pattern space which matched, and the special escapes \1 through \9 to refer to the corresponding matching sub-expressions in the regexp.