I am getting an error:
Code:
catch: couldn't execute "echo": argument list too long
errorInfo:
couldn't execute "echo": argument list too long
while executing
"exec echo "RES_loc='$RES'" >> $out_file"
(in namespace eval "::" script line x)
invoked from within
"namespace eval :: ...{
This is because $RES contains a lot of strings and even error points to this command, this might get evaluated later in the script with eval.
There is an option but I do not want to trim the var.
I am starting to look into how to replace exec with xargs but not yet sure how to.
Can anybody give me an advice please on how to solve this error?