Open simoniz0r opened 7 years ago
#!/bin/bash if [ "$1" = "13" ]; then echo "Input is 13!" else echo "Input is not 13!" fi
Misses edge cases such as "thirteen" and "XIII" and crashes where $1 is not equal to 13. You probably want either [ $1 -eq 13 ] or [[ "$1" == "13" ]]
[ $1 -eq 13 ]
[[ "$1" == "13" ]]