The easiest thing to do would probably be to use the JS transform rather than the REGEX transform. See @watou’s example here.
That being said, your commands may be having issues with binding because sometimes it doesn’t handle spaces properly. In that case replace your spaces with “@@”. For exmaple:
echo@@$(cat@@/sys/class/thermal/thermal_zone0/temp)@@1000@@|@@awk@@'{@@printf("%f\n",@@$1/$1)
You also many need to escape some of the special characters above (e.g. ', (, ), etc). Shunting the command off to a script would also be a good solution so openHAB just has to call your script.
I think though by far the simplest solution will be the JS transform.