adplus-dvertising
frame-decoration

Question

The following command will match the lines beginning with ‘2’.

$ grep “^2” emp.lst

a.

True

b.

False

c.

May be

d.

Can't say

Answer: (a).True

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The following command will match the lines beginning with ‘2’. $ grep “^2” emp.lst

Similar Questions

Discover Related MCQs

Q. Which of the following symbols are a set of ERE (extended regular expressions) ?

Q. Which option is used when we want to use an ERE with grep command?

Q. Which of the following symbols are used for matching multiple patterns?

Q. To perform context addressing, we have to enclose the pattern in ____

Q. To select lines containing gupta and agarwal, which command will be used?

Q. To write selected lines, ____ is used with sed.

Q. Which built-in variable is used by the awk to specify the line numbers?

Q. What is the default delimiter used by awk?

Q. The printf function uses ___ for string data and ___ for numeric.

Q. awk doesn’t use $ in evaluation or assignment of variables.

Q. A user-defined variable is initialized to ____

Q. awk uses ___ operator for concatenating strings.

Q. awk uses __ and __ as comparison operators.

Q. awk allows the user to use variables of his own choice.

Q. Which option is used for storing awk programs in a file?

Q. ____ section can be used if we’ve to print something after processing the last line.

Q. awk uses ____ for providing comments.

Q. Which of the following is a built-in variable for awk?

Q. FS defines the field separator.

Q. Which built variable is used for defining the field delimiter in the output?