if [ "$result" == "1" ] then echo "test" >> /home/samurai/test.txt fi if [[ "$result" -eq "1" ]] then echo "test" >> /home/samurai/test.txt fi