Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- echo "What is your max number:"
- read counter
- for number in {0.."$counter"}
- if [ (($number % 2 == 0)) ]
- then
- echo "$number"
- fi
- [root@sunshine Desktop]# bash Tester
- What is your max number:
- 9
- Tester: line 9: syntax error near unexpected token `if'
- Tester: line 9: `if [ (($number % 2 == 0)) ]'
Add Comment
Please, Sign In to add comment