* In a message originally to Martin Kazmaier, Tommi Koivula said:
> Hi Martin.
> 14 Dec 23 22:08:00, you wrote to All:
> MK> for %%a in (*.QQ) do (
> That should be (*.QQQ)
> MK> sed -b -i s/TID:^ FastEcho^ 1.46.1^ 43288/TID:^ FastEcho^ 1.46.1^
> MK> 43288\x0D\x01TZUTC:^ \x2D0700/gi %%a )
> My example from OS/2 works fine in this hpt/windows point of mine.
> === Cut ===
> set FINDTHIS=\x01CHRS: set ADDTHIS=\x01HELLO: WORLD!\x0D
> for %a in (c:\bbs\husky\temp\out\*.pkt) ( sed -b -i --
> 's/%FINDTHIS%/%ADDTHIS%%FINDTHIS%/gi' %a )
> === Cut ===
> C:\> cygwin\bin\sed.exe --version
> cygwin/bin/sed (GNU sed) 4.9 Packaged by Cygwin (4.9-1)
> I don't know what kind of SED you have in your windows but consider
> installing cygwin. ;)
I think I'm using cygwin, but it craps out if I try to surround the
expression with '.
I'll try it using variables, like suggested.
---
Shurato, Sysop Shurato's Heavenly Sphere (ssh, telnet, pop3, ftp,nntp)
(ports 22, 23, 110, 21, 119) (ssh: login bbs password shsbbs)
---
* Origin: Shurato's Heavenly Sphere telnet://shsbbs.net (1:340/1101)
|