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 are the different communication commands available in the shell?
madhar chod unix ke 10 commands dhang se likh nahi sakta hai
How can you get the value of pi till a 100 decimal places?
How do I open the shell in cmd?
Why is used in shell scripting?
How do I run a shell script in powershell?
What is mac default shell?
how to get part of string variable with echo command only?
What are the different commands available to check the disk usage?
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
I want to connect to a remote server and execute some commands, how can I achieve this?
Is shell a scripting language?
What is shell chemistry?
What are "c" and "b" permission fields of a file?
What is sed in shell script?