I’m trying this command
for x in qstat -u '*' | grep Eqw | awk {'print $1'}; do qmod -cj $x; done
and end up with this error:
-bash: syntax error near unexpected token `|'
I’ve tried wrapping my qstat command in various quotes and brackets to no avail, what am I doing wrong?
Since you seem to want to loop through on the result, so change it to: