Horje
command line if output of command is equal to string Code Example
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




Shell

Related
how to install typescript on ubuntu Code Example how to install typescript on ubuntu Code Example
mailutils check mail Code Example mailutils check mail Code Example
How to install Git in Ubuntu? Code Example How to install Git in Ubuntu? Code Example
how to uninstall games on ubuntu Code Example how to uninstall games on ubuntu Code Example
sudo show asterisks Code Example sudo show asterisks Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11