Skip to content

logical operation in The statement #260

Answered by pointo1d
petrasl1976 asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by petrasl1976
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants