Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #command #line #output #command #equal #string
ADD COMMENT
Topic
Name
1+4 =