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
What is the syntax of "nested if statement" in shell scripting?
Explain about shebang?
Explain about debugging?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?
What is the meaning of $1 in shell script?
How do we delete all blank lines in a file?
is this growing field and what is average package in this?
What are the four fundamental components of every file system on linux?
How to write a function?
Determine the output of the following command: name=shubham && echo ‘my name is $name’.
Why do we use shell scripting?
What is meant by $1 in shell script?
Where is bash history?
Why should we use shell scripts?
How to get the last line from a file using just the terminal?