Answer Posted / kaustubh
grep command is a utility which helps in searching pattern
from the given file.
example
grep "pattern" /home/username/somefile.txt
it ll search all lines in the file somefile.txt and will
print the line which contains pattern.
there are many options as
-v = invert
-i = ignorecase
-c = count
-l = filename
-r = recursive
| Is This Answer Correct ? | 7 Yes | 6 No |
Post New Answer View All Answers
How do I open the shell in cmd?
How can we find the process name from its process id?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
What is inside a seashell?
State the advantages of shell scripting?
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com
What is the use of a shebang line?
What is k shell?
How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?
How can I send a mail with a compressed file as an attachment?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
What is the difference between grep and egrep?
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
Is powershell a bash?
How to get script name inside a script?