While [ “$value” = “100” ; do
Echo “That’s a large number.” read value
There does not need to be a [
While and echo are capitalized
It only works on the number 100
Select a soup … (q) to quit
Use the test command to evaluate whether the shell variable contains a reference to the bash shell and use the echocommand to determine the result. (Note that this provides one way to verify from within a script that the script user is set up to use the bash shell.).
echo -n “What is your favorite vegetable?”
if test $veg_name = “broccoli”
echo “Broccoli is a healthy choice.”
if [ “$veg_name” = “carrots” ]
echo “Carrots are great for you.”
echo “Don’t forget to eat your broccoli also.”
Edit the veg_choice script again but, this time, change the line: if [ “$veg_name” = “carrots” ] to use the test command. Show results.
How could you set up CALNOW so that it works every time you log in using the bash shell?
Make the contents of your “them” script resident in memory and test your whoisthere function.
Modify your whoisthere function so that you can enter “These are the folks logged in:” as an argument to appear before you list who is logged into the system.
What actions do you take next to use the whoisthere function with your modifications?
How can you set up your new whoisthere function so that it can be run each time you log in using the bash script?
Script Name: record_entry
while [ “$looptrack” = 1 ]
echo -n “Type in the account number:” read account
echo -n “Type the first and last name:” ; read full_name
echo -n “Type the age:” red age
echo -n “Enter another record?” ; read looptrack
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.