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
How to use arguments in a script?
What are the four fundamental components of every file system on linux?
Write the syntax for "if" conditionals in linux?
Explain how you Automate your application using Shell scripting.
What command needs to be used to take the backup?
What is the difference between grep and egrep?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
What is inside a seashell?
What is an inode block?
What is subshell?
What's the difference between scripting and coding?
How do I run a bin bash script?
I want to connect to a remote server and execute some commands, how can I achieve this?
Is shell a scripting language?