Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Making a Linux shell script, I want to prompt the user on bash to enter four lines of input without having to do example0 example1

Making a Linux shell script, I want to prompt the user on bash to enter four lines of input without having to do example0\ example1\ example2\ example4 Currently this is what I have to do to get multiple lines of input

image text in transcribed

Basically I want the user to be able to input four lines and end them with punctuation and not have to put the "\" character in the terminal after each line. I am new to Linux so my syntax is probably terrible.

image text in transcribed

After i get the input I then want to send it to a text file. I was assuming a loop would be best but like I said I am new to using shell scripts so I am not sure

2 Enter four lines of input: .63 sed 3 example examplelv d mu example2V example3

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 Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions

Question

What are the two primary functions of a combination center drill?

Answered: 1 week ago

Question

Address an envelope properly.

Answered: 1 week ago