logical operation in The statement #260
-
Hi, How could I test
In shell i would do like this:
Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
As a first step, how about encasing your shell commands in a value subject e.g. |
Beta Was this translation helpful? Give feedback.
-
I found this easy to read: |
Beta Was this translation helpful? Give feedback.
As a first step, how about encasing your shell commands in a value subject e.g.
The value "$(egrep -q "success|well done" test_results.txt >/dev/null ; echo $?)" should equal 0
or ...The value "$([[ "$DNS" =~ "1.(0.0|1.1).1" ]] ; echo $?)" should equal 0