TIP: Click on subject to list as thread! ANSI
echo: fidotest
to: Martin Kazmaier
from: Tommi Koivula
date: 2023-12-15 15:59:00
subject: adding tzutc kludge...

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
 MK> )

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. ;)

'Tommi

---
                                                                
* Origin: Point One (2:221/1.1)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.