Answers for "command line if output of command is equal to string"

0

command line if output of command is equal to string

if [[ $(< your command giving output >) = *< substring to match >* ]]; then
  < your command if the substring is found anywhere in the output >
fi
Posted by: Guest on June-01-2021

Code answers related to "command line if output of command is equal to string"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language