Horje
condition expected: grep Code Example
condition expected: grep
if [ "$(cat textfile.txt | grep 'search string')" == "" ] ; then
    echo "It's not there!"
fi
condition expected: grep
if [ "$(cat textfile.txt | grep 'search string')" = "" ]; then; echo "some string"; fi;




Shell

Related
how to grep only exact match for a word in a file Code Example how to grep only exact match for a word in a file Code Example
git satge command Code Example git satge command Code Example
regex prenom et nom compose Code Example regex prenom et nom compose Code Example
check if cmake is installed windows Code Example check if cmake is installed windows Code Example
vim delete every other line Code Example vim delete every other line Code Example

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