Unix If/Then/Else From Bash Programmers Manual February 20, 2005 #!/bin/bash if [ "foo" = "foo" ]; then echo expression evaluated as true else echo expression evaluated as false fi