I need a unix script that check for even or odd. EXAMPLE::::
please enter the number to check: 12
the output: This is an even number
it has to have prompts.
I need a unix script that check for even or odd. EXAMPLE::::
please enter the number to check: 12
the output: This is an even number
it has to have prompts.
So,
this is your first post!!!
Welcome to the Forum...

what have you tried so far regarding the problem you had posted

here is something you can start with ...
# !/usr/bin/ksh
echo "Input number"
read number < /dev/tty
if [ $(($number % 2)) -eq 0 ]
then
echo "$number is even"
else
echo "$number is odd"
fi
exit 0
Thanks guys.
Hey 2 more.
Iwant to input a file
and i want it to tell me 3 trhings
EXAMPLE:::
INPUT: HW1
I can read the file HW1
I can write the file HW1
I cant execute the file HW1