I’m trying to change carriage return (after segment) to carriage return-line feed. I have a script that partially works. It works fine for between segments. However, since the end of the message already has CR-LF, I am getting CR-CR-LF at the end of each message.
 run { 
           # ‘run’ mode always has a MSGID; fetch and process it 
           keylget args MSGID mh 
           set msg [msgget $mh] 
           # substitute all  with  
           regsub -all “r” $msg “rn” msg 
           msgset $mh $msg 
           lappend dispList “CONTINUE $mh” 
       } 
Is there a better way to do this?
Kathy