echo “Enter the number to check”
if [` expr $n % 2 ` -eq 0 ]
echo “the no. is even”
echo “the no. is odd”
Enter the number to check
the no. is odd
Shell script to tell whether the user has logged in or not
clear echo "Enter the username to check:" read user who | egrep -w $user if [ $? -eq 0 ] ...