Question: Use sed for this question. fileA is a text file in the current directory and contains multiple lines of text. You want to make some
Use sed for this question.
fileA is a text file in the current directory and contains multiple lines of text.
You want to make some changes when printing lines of fileA to screen..
a Write a sed script to do the following changes to the lines of fileA as you output them to screen:
Remove the last paragraph of text in the file. The last paragraph starts with an empty line and ends at the last line.
For all lines that start with a digit: add spaces in front and spaces at the end of the line.
Add your name to the end of fileA your name will be the new last line of text
b Write the command line to run sed with your script and fileA
Make sure to answer both questions a and b
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
