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
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.
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 example3Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started