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:
for x in `qstat -u '*' | grep Eqw | awk {'print $1'}`; do qmod -cj $x; done
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With