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

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

1.^pat

2.$pat

3.pat$

4.pat^


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!