Alternate if if [ "$somevar" = "hello" ]; then if [ "$somevar" != "hello" ]; then if [ "$num" -lt 42 ]; then if [ "$num" -ge 42 ]; then if [ -r "$fname" ]; then if [ "$fname" -nt "file.txt" ]; then and so on...