Horje
checking if a substring exists in a string bash Code Example
checking if a substring exists in a string bash
string='Haystack';

if [[ $string =~ "Needle" ]]
then
   echo "It's there!"
fi




Shell

Related
unbuntu update node version Code Example unbuntu update node version Code Example
install nodejs in linux Code Example install nodejs in linux Code Example
Pyrit download command for linux Code Example Pyrit download command for linux Code Example
kill occupation port windows Code Example kill occupation port windows Code Example
assign variable with sed not working Code Example assign variable with sed not working Code Example

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