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 can you get the value of pi till a 100 decimal places?
What is another name for a bash shell script that you might see?
what is info area how many types?
How do I run a shell script on a mac?
How to find duplicate record in file using shell script?
Why do we use shell scripting?
What is meant by $1 in shell script?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
How do I read a .sh file?
What are the different commands available to check the disk usage?
What is echo in shell?
What is echo $shell?
What are script files?
What is the difference between scripting and coding?
What does echo mean in scripting?