adplus-dvertising
frame-decoration

Question

Which symbol will be used with grep command to match the pattern pat at the beginning of a line?

a.

^pat

b.

$pat

c.

pat$

d.

pat^

Answer: (a).^pat

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which symbol will be used with grep command to match the pattern pat at the beginning of a line?

Similar Questions

Discover Related MCQs

Q. Which command is used to sort the lines of data in a file in reverse order

Q. Which command is used to display the top of the file?

Q. Which command is used to copy all files having the string chap and any two characters after that to the progs directory?

Q. Which command is used to change protection mode of files starting with the string emp and ending with 1,2, or 3?

Q. Which command is used to remove a directory?

Q. Which of the following keys is used to replace a single character with new text?

Q. Which command is used to extract specific columns from the file?

Q. Which command sends the word count of the file infile to the newfile.

Q. Which command is used to remove the read permission of the file 'note' from both the group and others?

Q. Which of the following commands is used to display the directory attributes rather than its contents?

Q. Which of the following files will displayed by this command cat *ch*

Q. The Octal number to be given alogn with chmod command to make a file readable, writable and executable to the owner, readable and executable to group and others is:

Q. If you are to use [Control-c] as the interrupt key instead of [Del], then you will have to use

Q. Which of the following is not a communication command.

Q. Which of the following keys is used to move the cursor to the end of the paragraph.

Q. Which command is used to concatenate all files beginning with the string 'emp' and followed by a non-numeric characters?

Q. The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is

Q. Which command is used to remove a file?

Q. Which symbol is used to separate more than one command in the same command line?

Q. The agency that sits between the user and the UNIX system is called the