logical operation in The statement #260
Answered
by
pointo1d
petrasl1976
asked this question in
Q&A
-
Hi, How could I test
In shell i would do like this:
Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
pointo1d
May 10, 2022
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.
0 replies
Answer selected by
petrasl1976
-
I found this easy to read: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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