CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS OPERATING SYSTEMS UNIX COMMANDS DETAILS
Question :
Difference Between Grep and Find command ?

Posted by: Pankaj on 3/13/2008

Contact Pankaj  Contact Pankaj
Category Unix Commands Interview Questions
Rating (4.7) By 13 users
Added on 3/13/2008
Views 1165
Rate it!
Answers:

Find command is used to search for a file with a specific file name in a set of files.
Syntax: find .-name "fileE" -print

grep command is used to search pattren within a file.
Syntax: grep "pattren" filename



 Posted by: Deepti    

Contact Deepti  Contact Deepti

The main difference is that "find" is a file locator while "grep"
searches for patterns within a file.



 Posted by: ranjith reddy    

Contact ranjith reddy  Contact ranjith reddy


If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
Using the commands ps, cut, tr and kill, along with pipes, write a command that will find all sleep processes running on the system and kill them?
View Answer
What is the use of the command "ls -x chapter[1-5]"

View Answer
What is relative path and absolute path.
View Answer
Explain kill() and its possible return values.
View Answer
What is a pipe and give an example?
View Answer
How to terminate a process which is running and the specialty on command kill 0?
View Answer
What is redirection?
View Answer
What are shell variables?
View Answer
How to switch to a super user status to gain privileges?
View Answer
How does the kernel differentiate device files and ordinary files?
View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL Unix Commands Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/13987/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

0.75