What are the additional egrep symbols?

Answers were Sorted based on User's Feedback



What are the additional egrep symbols?..

Answer / 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

What are the additional egrep symbols?..

Answer / chandramohan

egrep -v

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Shell Script Interview Questions

If you have a string "one two three", which shell command would you use to extract the strings?

5 Answers  


wats the deinitions for shell utility and filter?

0 Answers  


Is shell scripting a language?

0 Answers  


What is the use of "shift" command in passing parameters?

1 Answers  


How do we create command aliases in a shell?

0 Answers  






What is the difference between grep and egrep?

0 Answers  


How will you print the login names of all users on a system?

0 Answers  


What is awk script?

0 Answers  


How will you schedule a job that will run every month last day?(some months have 30 days,some 31 days,28,29 days)

1 Answers   NTT Data, TCS,


How many fields are present in a crontab file and what does each field specify?

0 Answers  


What is sed in shell script?

0 Answers  


How to make userdefined variables to available for all other shells?

4 Answers  


Categories