Question: Copy the script and run it on your system and give a detail comment of what each line is doing. - - - - -

Copy the script and run it on your system and give a detail comment of what each line is doing.
------------------------------------------------
#!/bin/bash
# Scriptname: tellage
#
read -p"How old are you? "
age=$REPLY
if (( age <0|| age >120))
then
echo "You are not a real person! "
exit 1
fi
if (( age >=0 && age <13))
then
echo "You still have some of the best years of your life ahead."
elif (( age >12 && age <20))
then
echo "Important years to learn"
elif (( age >=20 && age <30))
then
echo "Time to find a potential mate!!"
elif (( age >=30 && age <40))
then
echo "You are probably changing diapers"
else
echo "Sorry I asked"
fi
-----------------------------------------

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!