Display the command(s) used to do the following: create a script that

  1. Display the command(s) used to do the following: create a script that uses case logic to have someone guess your favorite sandwich, such as tuna. Show results.

 

  1. Display the command(s) used to do the following: display the cclontents of .bashrc file. Next, use the vi editor to edit that file and put in an alias so that you see a long file listing of a directory every time you type list. Show results.

 

  1. Display the command(s) used to do the following: use a command to simulate how you would troubleshoot a problem with the sandwich script you created in the question above. Show results.

 

  1. What is wrong with the following lines of code?

While [ “$value” = “100” ; do

    Echo “That’s a large number.”   read value

Fi

 

            There does not need to be a [

            While and echo are capitalized

            It only works on the number 100

 

  1. Display the command(s) used to do the following: write a script that creates the following menu using a while loop and tput command:

 

Soup Menu

==========

(t)omato

(b)ean

(s)quash

Select a soup … (q) to quit

 

Show results.

 

  1. What are the exit statuses of the test command discussed in this chapter and what do they mean? How can you view the exit status results of the test command directly from the command line? Show results.

 

  1. Display the command(s) used to do the following: create a variable called mem_size and set its contents to 1024. Next, use the test command to determine if the contents of mem_size is less than or equal to 512. Show results.

 

  1. Display the command(s) used to do the following: set your shell from the command line to be the bash shell. Then, use the echo command to verify the contents of the shell variable. What is now contained in the shell variable?

 

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.).

 

Show results.

 

  1. Display the command(s) used to do the following: make your home directory your current working directory. Use the vi or Emacs editor to create the veg_choice script below. Enter a line in that script to ensure the script uses the bash shell. Run veg_choice to ensure your change works properly. Show results.

 

echo -n “What is your favorite vegetable?”

read veg_name

if test $veg_name = “broccoli”

then

   echo “Broccoli is a healthy choice.”

else

   if [ “$veg_name” = “carrots” ]

   then

      echo “Carrots are great for you.”

       else

      echo “Don’t forget to eat your broccoli also.”

   fi

fi

 

Edit the veg_choice script again but, this time, change the line: if [ “$veg_name” = “carrots” ] to use the test command. Show results.

 

  1. Display the command(s) used to do the following: create a shell variable that outputs the calendar for the current month (call it CALNOW).

 

How could you set up CALNOW so that it works every time you log in using the bash shell?

 

Show results.

 

  1. Display the command(s) used to do the following: in your source directory, write a script called “them” in which you create a function called whoisthere that displays a listing of who is logged in and displays the column headings for the information displayed.

 

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?

 

Show results.

 

  1. Troubleshoot the problems with the following script (there are 6 errors/corrections. Describe them below):

 

#===============================================

Script Name: record_entry

By:          TRJackson

#===============================================

looptrack=y

while [ “$looptrack” = 1 ]

  do

    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

  finish

Calculate the price of your order

Choose an academic level, add pages, and the paper type you want.
To reduce the cost of our essay writing services, select the lengthier deadline.
We can't believe we just said that to you.

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Why is Purdue Papers the Most Helpful Essay Writing Service for You?

  1. Custom-written and plagiarism-free papers: Our authors create their work from scratch. Before presenting them to clients, we routinely verify them for signs of plagiarism. Our quality assurance group also double-checks and fixes any grammatical errors, assuring that all of our authors adhere to the same standards of writing.
  2. The significance of timely delivery cannot be overstated, and we consistently strive to meet or exceed our clients' deadlines. Regardless of the short time frame, you can count on our writers to get the job done. We always have a team of writers ready to go, even if the deadline is only six hours away.
  3. Customer Satisfaction: Our customer service representatives are the best in the business and have a wealth of knowledge in dealing with clients. All our customer service representatives are trained to listen and reply promptly until you are satisfied with their service. To ensure you're happy, our expert writers will strictly follow the criteria to generate a special report. Our customer service may be contacted by chat, email, or phone. In addition, we provide round-the-clock assistance to all of our clients.
  4. Confidentiality: Our systems are safe, and your information is always protected. We're constantly looking for new facts when it comes to finishing your work. We use a safe and secure payment channel. Since our ordering process is completely anonymous, you don't have to provide any credit card information to place a purchase with us.
  5. Highly Trained Authors: Our writers have received extensive training and are committed to delivering only the best papers. They are fluent in APA, MLA, HARVARD, IEEE, CHICAGO, and AMA referencing styles. To meet your expectations, our skilled writers always pay close attention to your instructions.
  6. Lowered prices: We have set prices that are already discounted. Our prices are the best and affordable for all our esteemed customers.

Let Professionals Take Care of your Academic Paper