Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

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

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^