←Go Back to Online Practice Test
Ques. Which symbol will be used with grep command to match the pattern pat at the beginning of a line?
Option 1. ^pat
Option 2. $pat
Option 3. pat$
Option 4. pat^
Ans. Option 1
Please provide the reason below. The best provided reason will be displayed with your name(if you are logged-in) on website.
Enter Reason
 
Is it helpful? Yes No