Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash if file content equals

str=ABCD
if [[ $(< test.txt) != "$str" ]]; then
    # send e-mail
fi
 
PREVIOUS NEXT
Tagged: #bash #file #content #equals
ADD COMMENT
Topic
Name
4+3 =