Hi, I try to do some awk-stuff in my FvwmScripts, that lead to the question, howto escape curly brackets “{}” in strings?
I tried “\{”, “{{”, “${” - nothing seems to work.
Testcase:
Set $foo = {foo\{bar}
$foo should contain “foo{bar”.
many thanks for any hint! - okflo
I don’t see anything in my glance at the manual page, and there is some comments about how fvwmscript is weak and simple, it might not have such a feature (you could check the code to be sure). It suggests you write an external script (say a shell script) and just call that and then parse the output.
Hi somiaj,
thanks for you answer, looking into the code AFAIU the bison/yacc stuff, I fear you are right.
That’s pity, regarding f.e. awk stuff to show cpu, network, etc. I went for external scripts, meaning I now have about 15 scripts in my fvwm-directory
.
br - okflo