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
What are types of shells?
How to find duplicate record in file using shell script?
What are the 3 standard streams in linux?
How to calculate the number of passed arguments?
What is sudo command?
What is a shell in operating system?
What are different types of shell?
What is echo $shell?
What is meant by $1 in shell script?
What will happen to my current process when I execute a command using exec?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
How do I set bash as default shell mac?
What are the four fundamental components of every file system on linux?
What is a shell environment?
What is bash used for?