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.
Dheeaj said:
1 decade ago
^sign is used to search from the begining.
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.
Manjay said:
1 decade ago
$ sign is used to search from the end.
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)
Reddy said:
1 decade ago
^ used from starting in the file.
(1)
Anpt said:
1 decade ago
Echo "hello world" | grep "^he".
(1)
Vandana sharma said:
1 decade ago
Which of the following is not communication command?
(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.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers