Search for a whole line in a file

Hi All,

Please can anyone advise how can I search a whole line in a file.

Best Regards,
Shazin

Please post what have you tried.

Sample input and output.

grep "^pattern$" filename