# Write a script to print the result "youngster"
# if you are age between 20 to 40. Hunt ( age >20 && age < 40 )
if [[ $# != "1" ]]; then
echo "Usage: $0 age"
exit 1
fi
age=$1
if [[ "$age" -ge 20 && ("$age" -le 40) ]]; then
echo "youngster"
fi
Comments
Leave a comment