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.
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.
Ankit Gupta said:
1 decade ago
sign^ is used to search from the end.
^sign is used to search from the beginning.
^sign is used to search from the beginning.
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.
Gayathri said:
1 decade ago
It is a correct answer ^start point of line.
$end part of line.
$end part of line.
Maytas said:
1 decade ago
We can do it by using the command like :
grep ^pat files
grep ^pat files
(1)
Vandana sharma said:
1 decade ago
Which of the following is not communication command?
(1)
Dheeaj said:
1 decade ago
^sign is used to search from the begining.
Nileshraje said:
7 years ago
^ for matching at the beginning of a line.
(1)
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