Re: Utility to unfuzzy one specific msgstr in .po files?
On 2005-04-11T19:27:04+0300, bubulle@debian.org 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
Reply to: