Question
a.
:address/source_pattern/target_pattern/flag
b.
:address/target_pattern source_pattern/flag
c.
:address/flag
d.
:address
Posted under UNIX
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which of the following is a correct syntax for performing substitution on a file?
Similar Questions
Discover Related MCQs
Q. We cannot leave the flag field empty while performing the substitution.
View solution
Q. Which of the following commands can be used to replace ‘professor’ with ‘director’ throughout the whole file?
View solution
Q. Which of the following flag will be used for interactive substitution?
View solution
Q. Which one of the following commands will be used to delete all the instances of string ‘manager’ in file003?
View solution
Q. Which one of the following command is invalid?
View solution
Q. Search and replace operations can also use regular expressions for matching multiple patterns.
View solution
Q. For yanking text, ___ is used.
View solution
Q. For pasting text, ____ is used.
View solution
Q. c operator is used for changing the text.
View solution
Q. To change entire lines, ____ is used.
View solution
Q. Which operator is used in vi to filter text?
View solution
Q. To delete from current cursor upto the first occurrence of }, which of the following will be used?
View solution
Q. The command df. will _____
View solution
Q. To yank from current cursor up to first occurrence of string str in reverse direction, we can use:
View solution
Q. The following command will_________
!! tr ‘[a-z]’ ‘[A-Z]’
View solution
Q. The command c0 will change the text from current cursor to the end of line.
View solution
Q. For returning back to the original file after switching we can use:
View solution
Q. When multiple filenames are used with vi, we can switch to next file using ___ command.
View solution
Q. We can move back to the previous file using ____ command.
View solution
Q. :r !date inserts the output of date command in our file.
View solution
Suggested Topics
Are you eager to expand your knowledge beyond UNIX? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!