Question
a.
sed -n ‘/gupta/,/agarwal/p’ emp.lst
b.
sed -n ‘/gupta/agarwal/p’ emp.lst
c.
sed ‘/gupta | agarwal’p’ emp.lst
d.
sed -n
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. To select lines containing gupta and agarwal, which command will be used?
Similar Questions
Discover Related MCQs
Q. To write selected lines, ____ is used with sed.
View solution
Q. Which built-in variable is used by the awk to specify the line numbers?
View solution
Q. What is the default delimiter used by awk?
View solution
Q. The printf function uses ___ for string data and ___ for numeric.
View solution
Q. awk doesn’t use $ in evaluation or assignment of variables.
View solution
Q. A user-defined variable is initialized to ____
View solution
Q. awk uses ___ operator for concatenating strings.
View solution
Q. awk uses __ and __ as comparison operators.
View solution
Q. awk allows the user to use variables of his own choice.
View solution
Q. Which option is used for storing awk programs in a file?
View solution
Q. ____ section can be used if we’ve to print something after processing the last line.
View solution
Q. awk uses ____ for providing comments.
View solution
Q. Which of the following is a built-in variable for awk?
View solution
Q. FS defines the field separator.
View solution
Q. Which built variable is used for defining the field delimiter in the output?
View solution
Q. The ____ variable stores the name of the file currently being processed.
View solution
Q. Which of the following is not a built-in variable used by awk?
View solution
Q. awk supports the use of arrays.
View solution
Q. Which of the following is not true about awk arrays?
View solution
Q. Which of the following is an associative array?
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!