Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Remove Training lf
I need to remove the trailing line feed character in a tcl variable. It’s in my head somewhere but I can’t shake it out.
David,
How about string trimright?
set junk “123n”
set junk [string trimright $junk “n”]
You could use string map but that would remove all n.
Or you always could use regsub – but why when string trimright will do the job nicely?
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 61 years IT – old fart.
Exactly what I was groping for.
Thanks Jim