if which program &> /dev/null; then echo "program doesn't exist" exit fi