Question: 3. Working with sed on the command line can be tedious and frustrating. Try the following but, put the commands in a text file first.
3. Working with sed on the command line can be tedious and frustrating. Try the following but, put the commands in a text file first. Recall that the method is to put the sed command(s) in the text file (e.g. sedfile) and then to issue the command sed f sedfile chin4, where chin4 is the file to edit. Do 2b, 2l, 2o, 2q using files instead of the command line. b. Append ten caret symbols and a blank line underneath line 1 of the file. l. Delete all lines containing a period. o. From lines 10 to the end of the file, replace every occurrence of e with E. q. Replace every occurrence of . in the file with ....
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
