Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

linux help Create a file called trees, containing the following individual lines

ID: 3808975 • Letter: L

Question

linux help

Create a file called trees, containing the following individual lines: Oak tree Pine Tree Spruce tree Cottonwood Maple tree Pine Tree Copy in the contents of the trees to more_trees file. Next, add the following trees at the end of the list. Redwood Willow tree Use a command to compare the trees and more_trees files and show the differences in terms of individual lines that differ. Determine the number of bytes in both the trees and more trees files Use a command to replace the word "tree" with 'plant'' in the more_trees file Use a command to make all letters uppercase in trees file Use the unit command to remove the duplicate lines in trees file Use the grep command to find all the lines that contain the word "Pine" in the trees After you run the commands on the command line, write a script with your answers. Upload your script and the green shot of your output.

Explanation / Answer

a. diff trees more_trees

diff trees more_trees
6a7,8
> Redwood
> Willow tree

b. wc -c trees; wc -c more_trees

wc -c trees; wc -c more_trees
68 trees
88 more_trees

c. sed -i 's/tree/plant/g' more_trees

d. sed -i 's/.*/U&/g' trees

e. sort gtrees| uniq

f. grep 'Pine' trees