Answer Posted / vijesh
-b Precede each line by the block number on which
it was
found. This can be useful in locating block
numbers by
context (first block is 0).
-c Print only a count of the lines that contain
the pat-
tern.
-e pattern_list
Search for a pattern_list (full regular
expression
that begins with a -).
-f file
Take the list of full regular expressions from
file.
-h Suppress printing of filenames when searching
multiple
files.
-i Ignore upper/lower case distinction during
comparis-
ons.
-l Print the names of files with matching lines
once,
separated by NEWLINEs. Does not repeat the
names of
files when the pattern is found more than once.
-n Precede each line by its line number in
the file
(first line is 1).
-s Work silently, that is, display nothing except
error
messages. This is useful for checking the
error
status.
-v Print all lines except those that contain the
pattern.
-x Consider only input lines that use all
characters in
the line to match an entire fixed string or
regular
expression to be matching lines.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the default ubuntu terminal?
What are different types of shell?
How will you pass and access arguments to a script in linux?
Which shell is the best?
How to pass an argument to a script?
What is ms powershell?
Explain about stdin, stdout and stderr?
How can I send a mail with a compressed file as an attachment?
How to get the last line from a file using just the terminal?
What is a shell script in windows?
What is a shell script? Can you name some of its advantages?
How do I set bash as default shell mac?
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.
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
How will you print the login names of all users on a system?