Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a BASH shell script to create a mailing label. Your script must accomplish all of the following objectives to be awarded full points. The

image text in transcribed

Write a BASH shell script to create a mailing label. Your script must accomplish all of the following objectives to be awarded full points. The sample output provided is intended as a guide; scripts that simply print the sample output without any logic will not be graded. Partial points will be awarded for scripts that partially meet the requirements. 1. Prompt the caller for each of; full name, street address, city, state and ZIP code 1. Check that each of the provided inputs is not empty. Prompt again until a non-empty input is provided 2. Print the mailing label in the following format. [full name] (street address] [city], [state] [ZIP code] 3. Ask the caller if they would like to generate another label. (Y or N) 1. Y = start again from step 1 2. N = conclude script 3. HINT: consider encapsulating your logic in a function to make this easier. Or, leverage the $0 positional parameter to call your own script again Sample invocation Name: Name: Chelsey Ingersoll Street: 7001 East Williams Field Rd City: Mesa State: AZ ZIP: 85212 Chelsey Ingersoll 7001 East Williams Field Rd Mesa, AZ 85212 Would you like to make another label? Y Name: Linux Torvalds Street: 100 E. Davie Street City: Raleigh State: NC ZIP: 27601 Linux Torvalds 100 E. Davie Street Raleigh, NC 27601 Write a BASH shell script to create a mailing label. Your script must accomplish all of the following objectives to be awarded full points. The sample output provided is intended as a guide; scripts that simply print the sample output without any logic will not be graded. Partial points will be awarded for scripts that partially meet the requirements. 1. Prompt the caller for each of; full name, street address, city, state and ZIP code 1. Check that each of the provided inputs is not empty. Prompt again until a non-empty input is provided 2. Print the mailing label in the following format. [full name] (street address] [city], [state] [ZIP code] 3. Ask the caller if they would like to generate another label. (Y or N) 1. Y = start again from step 1 2. N = conclude script 3. HINT: consider encapsulating your logic in a function to make this easier. Or, leverage the $0 positional parameter to call your own script again Sample invocation Name: Name: Chelsey Ingersoll Street: 7001 East Williams Field Rd City: Mesa State: AZ ZIP: 85212 Chelsey Ingersoll 7001 East Williams Field Rd Mesa, AZ 85212 Would you like to make another label? Y Name: Linux Torvalds Street: 100 E. Davie Street City: Raleigh State: NC ZIP: 27601 Linux Torvalds 100 E. Davie Street Raleigh, NC 27601

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

Explain the steps involved in training programmes.

Answered: 1 week ago

Question

What are the need and importance of training ?

Answered: 1 week ago

Question

What is job rotation ?

Answered: 1 week ago