标签: parameters brackets qsub
我尝试将参数传递给qsub:
text="some text (with brackets) in the middle" qsub script.sh -v "text=\"$text\""
我只打印$text字段,它给了我
$text
"some text (with brackets
因此,由于“)”结束括号,字符串被截断。如何避免这种情况并得到这个结果:
"some text (with brackets) in the middle"
谢谢