If in shell If tests the exit value of a command 0 is true, everything else is false Recall that Our testing output is in outfile Correct output is in test.out if cmp test.out outfile; then echo "test passed" else echo "test failed" fi