Question: PART 2 : sed. Clear your terminal window. Type in echo Large melons > produce.txt Type in echo Large bananas > > produce.txt Type in

PART 2: sed.
Clear your terminal window.
Type in echo "Large melons" > produce.txt
Type in echo "Large bananas" >> produce.txt
Type in echo "Small berries" >> produce.txt
Display the contents of produce.txt with cat.
Make a copy of produce.txt named produce.txt.bak in the same directory.
Type in sed -i 's/Large/Huge/' produce.txt
Display the contents of produce.txt with cat.
Type in diff produce.txt produce.txt.bak
Take a screenshot of the commands and output of steps 2-9. Name it lab_7_screenshot_3.
Clear your terminal window.
Type in sed -i '2s/Huge/Medium/' produce.txt
Display the contents of produce.txt with cat.
Type in sed -n '/bananas/=' produce.txt and note the output.
Type in sed -i '/bananas/i Medium oranges' produce.txt
Display the contents of produce.txt with cat.
Take a screenshot of the commands and output of steps 12-16. Name it lab_7_screenshot_4.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!