Question: Scripting Languages question 2 Type the following commands at a terminal prompt to create a practice file cat > Newfile.txt The black cat was chased
Scripting Languages
question 2
Type the following commands at a terminal prompt to create a practice file cat > Newfile.txt The black cat was chased by the black dog. The black cat was not chased by the black dog. # Ctrl-D to exit the cat command and close the file Using the sed command what will you type to change the color of the dog to brown in all occurrences. Note: Once you figure out the command, make sure to run $cat Newfile.txt to check if the word black has been changed to brown.
question 3
Use the same file (Newfile.txt) you created in question 4 .
What command (Select all possible from the list below) will you write to create a backup of the same file (Newfile.txt) named Newfile.txt.bk?
bk -file Newfile.txt Newfile.txt.bk
cat Newfile.txt > Newfile.txt.bk
cp Newfile.txt Newfile.txt.bk
tar -f Newfile.txt Newfile.txt.bk
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
