Question: 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

Making a Linux shell script, I want to prompt the user on

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.

bash to enter four lines of input without having to do example0\

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

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!