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 syntax of grep command and what is its use?

Answers were Sorted based on User's Feedback



What is the syntax of grep command and what is its use?..

Answer / bharath

grep command is used to search a file for keywords.
grep 'keyword' file

Is This Answer Correct ?    9 Yes 0 No

What is the syntax of grep command and what is its use?..

Answer / amit

grep command is used to search the any word, any sentence
from given or input file.
syntex of grep command is
grep "word or sentence" filename

Is This Answer Correct ?    7 Yes 0 No

What is the syntax of grep command and what is its use?..

Answer / guest

grep " string" filename

Is This Answer Correct ?    3 Yes 1 No

What is the syntax of grep command and what is its use?..

Answer / ankita

grep is used to find the patterns inside files.

grep -options "pattern" file_name

grep -i "hello" test_file

this is search for "hello"(case doesn't matter as we have used -i) in test_file

Is This Answer Correct ?    0 Yes 0 No

What is the syntax of grep command and what is its use?..

Answer / shilpa

syntax= % grep pattern file-name-1 file-name-2
It is used to search files

Is This Answer Correct ?    0 Yes 1 No

What is the syntax of grep command and what is its use?..

Answer / bhaskar

syntax

grep "filename or string name"


It is used to find the values quickly

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Unix Commands Interview Questions

What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where we use this commnands?

6 Answers   Deloitte, Polaris,


what is virtual machine?

2 Answers   Infosys,


What is in grep command?

0 Answers  


distinguish between physical addresses and logical address?

23 Answers   College School Exams Tests, CTS, Infosys, SAX, TATA, TCS,


what is the cmd to remove the comment lines from a file and to display the original text without comments? thanks in advance......

5 Answers  


what is the use of "test" command in unix?

4 Answers  


distinguish between multi-tasking,multi-user,multi- processing and time sharing?

7 Answers   Alcatel, Cisco, Infosys, University Exams,


How to add content of one file into another file at the beginning

12 Answers  


how to check a file system type

7 Answers   Wipro,


What are the unix commands?

0 Answers  


distinguish between user mode and kernel mode?

4 Answers   Infosys,


Why is it called a shebang?

0 Answers  


Categories