The problem is like this:
There is a script called run, I need to change the operation of run to make the 2nd field of the output of run to be 0 (Please note: it’s not the output of run but a part of it). I just don’t know how to judge the value of the the 2nd field of the output of run for a loop.
Does anyone have any good ideas? Thank you.
See this snippet :
or simply:
On in a for loop :
note:
((...))is an arithmetic command, which returns an exit status of 0 if the expression is nonzero, or 1 if the expression is zero. Also used as a synonym for “let”, if side effects (assignments) are needed. See http://mywiki.wooledge.org/ArithmeticExpression