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:
4 months 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:
5 years ago
^ for matching at the beginning of a line.
Alia said:
7 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:
8 years ago
Which of the following is not communication command?
Anpt said:
8 years ago
Echo "hello world" | grep "^he".
Reddy said:
8 years ago
^ used from starting in the file.
Maytas said:
9 years ago
We can do it by using the command like :
grep ^pat files
grep ^pat files
Gayathri said:
9 years ago
It is a correct answer ^start point of line.
$end part of line.
$end part of line.
Jayachitra said:
9 years 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:
10 years ago
$ sign is used to search from the end.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers