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
Suppose you execute a command using exec, what will be the status of your current process in the shell?
How do I run a shell script on a mac?
What is the difference between grep and egrep?
How to check if a directory exists?
How important is shell scripting?
What are the various stages of a linux process it passes through?
What language is bash?
What is the command to find out today's date?
What lives in a shell?
What is the best scripting language?
What are the two files of crontab command?
What is a shell made of?
I have 2 files and I want to print the records which are common to both.
What is sh in shell script?
How do I run a .sh file?