I'm trying to create a function using this
Code:
eo (){let re=$1%2; if (($re != 0)); then; echo "Odd"; else; echo "Even"; fi;}
but for some reason I keep getting this error message..
Code:
bash: syntax error near unexpected token `{let'
what am I missing?