Question
a.
single quotes
b.
double quotes
c.
without any quotes
d.
all quotes
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. If there are special characters in a pattern, then we’ve to enclose them in ______
Similar Questions
Discover Related MCQs
Q. Which option is used with grep command for ignoring the case in pattern searching?
View solution
Q. Which option is used with grep command for deleting lines?
View solution
Q. Which option is used for displaying the line numbers containing the pattern along with lines?
View solution
Q. ______ option counts the number of lines containing the pattern?
View solution
Q. Which option displays only the filename containing the pattern?
View solution
Q. _____ option is used when we need to match multiple patterns in a single invocation of grep command?
View solution
Q. For taking patterns from a file, -f option is specified with grep command.
View solution
Q. POSIX identifies regular expressions as belonging to ____ categories.
View solution
Q. grep command supports both extended and regular expressions.
View solution
Q. Character class is used for matching a group of characters enclosed within a pair of _____
View solution
Q. The following command will match ‘Agarwal’, ‘agarwal’ and ‘agrawal’.
$ grep “[aA]g[ar][ar]wal” emp.lst
View solution
Q. Which of the following symbol is used for matching the immediate preceding character?
View solution
Q. Which symbol is used for matching a single character?
View solution
Q. Which of the following symbols are used for matching a pattern at specified locations?
View solution
Q. The following command will match the lines beginning with ‘2’.
$ grep “^2” emp.lst
View solution
Q. Which of the following symbols are a set of ERE (extended regular expressions) ?
View solution
Q. Which option is used when we want to use an ERE with grep command?
View solution
Q. Which of the following symbols are used for matching multiple patterns?
View solution
Q. To perform context addressing, we have to enclose the pattern in ____
View solution
Q. To select lines containing gupta and agarwal, which command will be used?
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!