Question
1) You want to replace the name Mary with Sue anywhere it appears on lines 2 through 7. The following command will replace all occurrences
1) You want to replace the name "Mary" with "Sue" anywhere it appears on lines 2 through 7. The following command will replace all occurrences of "Mary" with "Sue" in lines 2 through 7?
sed '2,7s/Mary/Sue/g' dear.john
True or False
2) Change directory to my home directory. Execute the following sed command string. sed '/^$/d' sedfile Will this command remove all of the blank lines from the output of the command?
Yes or No
3) cd to my home directory. Consider the following sed command string.
sed '3,$s/Hallowein/Halloween/' halloween
Will the above command string replace ALL the occurences of Hallowein with Halloween from line 3 to the end of the file in the file called halloween?
Yes or No
Step 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