ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
   
 
Categories  >>  Software  >>  Operating Systems  >>  Unix  >>  Unix Commands
 
 


 

 
 Unix Commands interview questions  Unix Commands Interview Questions
 Unix Threads interview questions  Unix Threads Interview Questions
 Unix IPC interview questions  Unix IPC Interview Questions
 Unix Socket Programming interview questions  Unix Socket Programming Interview Questions
 Unix System Calls interview questions  Unix System Calls Interview Questions
 Unix General interview questions  Unix General Interview Questions
 Unix AllOther interview questions  Unix AllOther Interview Questions
Question
What is the syntax of grep command and what is its use?
 Question Submitted By :: Aruna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the syntax of grep command and what is its use?
Answer
# 1
grep " string" filename 
Is This Answer Correct ?    3 Yes 1 No
Guest
 
  Re: What is the syntax of grep command and what is its use?
Answer
# 2
grep command is used to search a file for keywords.
grep 'keyword' file
 
Is This Answer Correct ?    9 Yes 0 No
Bharath
 
 
 
  Re: What is the syntax of grep command and what is its use?
Answer
# 3
syntax= % grep pattern file-name-1 file-name-2
It is used to search files
 
Is This Answer Correct ?    0 Yes 1 No
Shilpa
 
  Re: What is the syntax of grep command and what is its use?
Answer
# 4
syntax

grep "filename or string name"


It is used to find the values quickly
 
Is This Answer Correct ?    0 Yes 2 No
Bhaskar
 
  Re: What is the syntax of grep command and what is its use?
Answer
# 5
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
Amit
 

 
 
 
Other Unix Commands Interview Questions
 
  Question Asked @ Answers
 
the difference between a soft link and a hard link?  5
How do you list the files in an UNIX directory while also showing hidden files?  6
distinguish between physical addresses and logical address? Infosys20
How to know a process is a zombie or orphan process? Perot-Systems3
Suppose 1000 processes are running on the system out of those if you have to show only certain process ids which command will you use?  5
what is the difference between relative path and absolute path?  7
How to find the files that are accessed before 10 minutes? Amazon4
what is the difference between Touch & cat command QA21
what do you understand by 'building block primitive'? Infosys3
How do you create a file in UNIX QA36
what is the function of grep command?  4
what is the difference between "cron" command and "at" command?  5
 
For more Unix Commands Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com