On 2005-04-11T19:27:04+0300, [EMAIL PROTECTED] wrote:
> cat $i | sed 's/Bier/beer/g' >$i

> Be aware that this needs a recent sed to be able to "cat file | sed
> ....>file" On woody machines, you need sed to output to an
> intermediate file.

It works everywhere and always if you replace cat+sed with ed, the one
true editor:

ed $i <<EOF
,g/^msgstr/s/Bier/beer/
w
q
EOF

Also notice optional ^msgstr part, sometimes you want to remove it and
use just

,g//s/Bier/beer/

-- 
Tommi Vainikainen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to