bash jika konten file sama

str=ABCD
if [[ $(< test.txt) != "$str" ]]; then
    # send e-mail
fi
feddynventor