Question
a.
cut
b.
sort
c.
pr
d.
tail
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. ____ command is used for sorting a file on specified fields.
Similar Questions
Discover Related MCQs
Q. The name of the input and output files cannot be same while using sort command.
View solution
Q. Which command is used for locating repeated and non-repeated lines?
View solution
Q. uniq command requires a sorted file as input.
View solution
Q. Which option is used with uniq command for selecting non-repeated lines?
View solution
Q. Which one of the following command is used for searching for a pattern in one or more file(s)?
View solution
Q. Which one of the following is the correct syntax for grep command?
View solution
Q. Which one of the following command will be used for searching “director” in emp.lst?
View solution
Q. When the pattern is not found in a file, grep command silently returns the prompt.
View solution
Q. grep command can be used for searching a pattern in more than one file.
View solution
Q. Which of the following is not a subset of BRE (basic regular expression) character subset?
View solution
Q. Which of the following commands is known as stream editor?
View solution
Q. What is the correct syntax for using sed?
View solution
Q. Which one of the following command will be used for quitting after selecting 3 lines from file emp.lst?
View solution
Q. Which of the following command is used with sed for outputting as well as printing the selected lines?
View solution
Q. To suppress the behaviour of ‘p’ command, we use ____ option.
View solution
Q. The command $ sed -n ‘$p’ emp.lst will display the last line.
View solution
Q. Consider the following commands.
$ sed -n ‘1,2p’ emp.lst
$ sed -n ‘3,$!p’ emp.lst
The output of both commands will be same.
View solution
Q. Which option is used with sed for using multiple instructions?
View solution
Q. ____ option is used for taking instructions from a file.
View solution
Q. sed can also perform the substitution.
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!