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 is the function of grep command?

Answers were Sorted based on User's Feedback



what is the function of grep command?..

Answer / khemnath chauhan

grep command let us find the desire pattern in given
statements or from contents of file.
SYNOPSIS:
$grep <pettern to search> <file name>
this will find the particular pattern.

Is This Answer Correct ?    9 Yes 0 No

what is the function of grep command?..

Answer / bharath

grep command is used to search a string or a keyword in a
file.
syntax:
grep 'keyword' file

Is This Answer Correct ?    6 Yes 3 No

what is the function of grep command?..

Answer / dhina

Grep will help us to display the particular information from
a file. For example.

grep apple fruitlist.txt

In this case, grep prints all lines containing 'apple' from
the file fruitlist.txt

Is This Answer Correct ?    3 Yes 0 No

what is the function of grep command?..

Answer / kavin

grep is used to filter or search for a pattern in the given
file.

for example
grep student class

will display only the lines that contains the word student
in it.

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More Unix Commands Interview Questions

What is the difference between Shell Programming and Shell scripting?

10 Answers   HCL, TCS, Wipro,


What does the command ' $who | sort –logfile > newfile' do?

0 Answers  


what is exact definition of operating system?

13 Answers  


what is the use of ls -l command & what is the information it gives about user ?

5 Answers  


what is virtual machine?

2 Answers   Infosys,


What command will bring user back to their home directory in UNIX?

13 Answers   IBM, Wipro,


What difference between cmp and diff commands?

0 Answers  


Why is grep called grep?

0 Answers  


What is an Environment Variable?

4 Answers   CTS,


What does 'mkdir' command do in UNIX?

0 Answers   Syntel, Visa,


How does the system know where one command ends and another begins?

0 Answers  


How i'll delete a particular line from the file? Please give answer as soon as possible. Thanks in advance.

12 Answers   IBM,


Categories