Posts by Igor Galdencio Gonçalves • 11 points
2 posts
-
0
votes0
answers212
viewsQ: command not found
One more newbie question echo "Enter an integer number" read int checkNum=$(( int % 2 )) if [$checkNum -eq '0' ]; then echo "the number is even" else echo "the number is odd" fi Error when I enter…
-
1
votes0
answers91
viewsQ: syntax error near Unexpected token `fi'
I’m new and I’m having trouble with the script below: echo "Enter an A, B or C" read letter if [[ $letter == "A" || $letter == "a" ]]; then echo "this is A" elif [[ $input == "B" || $input == "b" ];…