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 web script?
Is shell scripting difficult?
What is k shell?
What does egrep mean?
What is shift command in shell script?
What is a scripting language simple definition?
What is .sh file in mac?
What are the different communication commands available in the shell?
How to pass an argument to a script?
How does shell scripting work?
How do I run a .sh file on mac?
Is shell a scripting language?
What is shell application?
i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..
What is the significance of the shebang line in shell scripting?