| Newsgroups |
gmane.editors.sed.user |
| Message-ID |
<[email protected]> |
On 2014-09-28 09:55, 'Ben Stover' [email protected] [sed-users] wrote:
> I want to use gnu sed for windows (available here: http://gnuwin32.sourceforge.net/packages/sed.htm)
> to replace some bytes in file test.txt by other bytes.
> Therefore I created (on 64bit Windows 7) the following DOS batch script:
>
> echo start
> sed 's/\xc3\xbc/\xtc/g' <test.txt >testnew.txt
> pause
>
> However when I run this batch script by double clicking I got the following error:
> sed: -e expression #1, char 1: unknown command: `''
>
> Why?
Hello Ben,
As was said, switch to proper Windows command line quotes.
Alternatively, create a file "utf8-to-latin1.sed" and use that.
(or use a specialized tool for that transformation;
instead of "\xtc" you probably meant "\xFC")
--
Greetings, Ruud