Reply To: Extra Carriage Return

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Extra Carriage Return Reply To: Extra Carriage Return

#58920

In Tcl you could try something like this …

Code:

regsub 15$ $currentMsg 12 newMsg

… where 15$ is (octal) carriage return at the end of a line and 12 is (octal) line feed.

Or, if you have perl installed, you could try this from within Tcl …

Code:

[catch {exec perl -e “$_ = “$currentMsg”; “s/15/12/”; print”} newMsg]

You will probably need to tweak this for your actual needs and your specific environment.

-- Max Drown (Infor)