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 significance of $#?
What exactly is a shell?
How do I read a .sh file?
What is meant by $1 in shell script?
Explain how you Automate your application using Shell scripting.
How important is shell scripting?
What is bash coding?
How would you compare the strings in a shell script?
What is another name for a bash shell script that you might see?
What is basename in shell script?
What is an inode block?
What is the syntax of "nested if statement" in shell scripting?
What is bash shell command?
What can scripts do?
How can I set the default rwx permission to all users on every file which is created in the current shell?