Answer Posted / vasanth
grep: Find lines in a file that match a regular expression
syntax: grep [options] pattern [files]
Useful Options : -v, -l, -L, -c, -n, -b, ,-i
-v Print only lines that donot match the regular expression
-l Print only names of files that contains matching
lines,not the line themseleves
for furthur information
pls ref. linux pocket guide by Daniel J. Barrett (page-71)
| Is This Answer Correct ? | 14 Yes | 4 No |
Post New Answer View All Answers
Can shell script run on windows?
What language is shell scripting?
Print the 10th line without using tail and head command.
What does echo $0 do?
Which scripting language is best for automation?
How can you get the value of pi till a 100 decimal places?
What is the difference between break and continue commands?
What is option in shell script?
What are the types of script?
Why do we use shell scripting?
How do you create a shortcut in linux?
What is an inode block?
Determine the output of the following command: name=shubham && echo ‘my name is $name’.
What can you do with powershell?
State the advantages of shell scripting?