Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

I want to upload a file to remote server through ftp daily.Can anyone suggest how to make a shell script for that.I hv credentials for that ftp

1 Answers  


write a non recursive shell script that accepts any number of arguments and prints them in the reverse order

3 Answers  


Explain about "s" permission bit in a file?

0 Answers  


What is awk script?

0 Answers  


What is the syntax of "expr" command?

2 Answers  


Explain about echo command?

0 Answers  


What does .sh file contain?

0 Answers  


What is web script?

0 Answers  


Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.

0 Answers  


How to set an array in linux?

0 Answers  


A file has multiple records each having three 30-bit long fields(field1,field2,field3).There is also a lookup file,LOOK_UP.dat.Now, we need to consider only the last ten digits of field1 and lookup the file LOOK_UP.dat. If there a match then field2 and field3 should replaced with corresponding data from the lookup file. otherwise that particular record,for which there is no match, should be stored in a seperate file.

2 Answers   Wipro,


There is a record with fields namely name,roll no.,salary,grade etc.Now,write a script to create a file with multiple records have same combination of fields but with unique roll numbers.The script should work for different names in the input file.

1 Answers   Wipro,


Categories