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 1 of 2.

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

Anyone please explain me.

Nileshraje said:   6 years ago
^ for matching at the beginning of a line.
(1)

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

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

Vandana sharma said:   9 years ago
Which of the following is not communication command?

Anpt said:   9 years ago
Echo "hello world" | grep "^he".

Reddy said:   9 years ago
^ used from starting in the file.

Maytas said:   10 years ago
We can do it by using the command like :

grep ^pat files

Gayathri said:   10 years ago
It is a correct answer ^start point of line.

$end part of line.

Jayachitra said:   1 decade ago
^ for matching at the beginning of a line.

$ for matching at the end of a line.

Manjay said:   1 decade ago
$ sign is used to search from the end.


Post your comments here:

Your comments will be displayed after verification.