Question: Please use the script file sub discussed on page 678 of your Linux book as a template to complete the following tasks: Make two more
Please use the script file sub discussed on page 678 of your Linux book as a template to complete the following tasks:
Make two more copies of file mysedfile, created in Lab 6, as mysedfile2 and mysedfile3;
Create a script file, mysedscript, that will read the files, mysedfile, mysedfile2, and mysedfile3, as its inputs using a for-loop;
For each file mysedscript reads, please use the sed commands to 1) remove the blank line(s), 2) insert the following record before Lisas record, and 3) update the files accordingly:
Tony 93 86 97
After the execution (remember to chmod +x ) of mysedscript, please check whether mysedfile, mysedfile2, and mysedfile3 are updated accordingly.
Cut/paste your script file, mysedscript, to a local text document, save it in a text (or pdf) format, and then upload it, along with a screenshot of the execution of your mysedscript, to D2L by the deadline.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
