SyntaxFix
Write A Post
Hire A Developer
Questions
It might be a good idea to use arithmetic expressions if you're dealing with numbers.
if (( $# != 1 )); then >&2 echo "Illegal number of parameters" fi
>&2 is used to write the error message to stderr.
>&2