Computer Science - Unix - Discussion

Discussion Forum : Unix - Section 1 (Q.No. 1)
1.
Which symbol will be used with grep command to match the pattern pat at the beginning of a line?
^pat
$pat
pat$
pat^
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
12 comments Page 2 of 2.

Alia said:   10 years ago
Echo "pattern" | grep "^pat" is used to search from starting.

Echo "pattern" | grep "rn$" is used to search from end.

Ashok said:   3 years ago
Which symbol will be used with grep command to match the pattern EVOL at the beginning of the line?

Anyone please explain me.


Post your comments here:

Your comments will be displayed after verification.