Question: Write a program called mysed that applies the sed script given as the first argument against the file given as the second argument. If the
Write a program called mysed that applies the sed script given as the first argument against the file given as the second argument. If the sed succeeds (i.e. an exit status of 0), then replace the original file with the modified one. So $ mysed '1,10d' text will use sed to delete the first 10 lines from text, and if successful, will replace text with the modified file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
