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?
Discussion:
12 comments Page 1 of 2.
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.
Anyone please explain me.
Nileshraje said:
7 years ago
^ for matching at the beginning of a line.
(1)
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.
Echo "pattern" | grep "rn$" is used to search from end.
Vandana sharma said:
1 decade ago
Which of the following is not communication command?
(1)
Anpt said:
1 decade ago
Echo "hello world" | grep "^he".
(1)
Reddy said:
1 decade ago
^ used from starting in the file.
(1)
Maytas said:
1 decade ago
We can do it by using the command like :
grep ^pat files
grep ^pat files
(1)
Gayathri said:
1 decade ago
It is a correct answer ^start point of line.
$end part 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.
$ 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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers