1 example for if
# echos "found" if a file contains the word you're looking for if grep myword myfile.txt ; then echo "found" ; fi # same thing on multiple lines if grep myword myfile.txt then echo "found" fi
# echos "found" if a file contains the word you're looking for if grep myword myfile.txt ; then echo "found" ; fi # same thing on multiple lines if grep myword myfile.txt then echo "found" fi