What is the difference between grep & find?

Answers were Sorted based on User's Feedback



What is the difference between grep & find? ..

Answer / chandra (acs)

grep is used to search for string in a file
find is used to searche files or directories

Is This Answer Correct ?    150 Yes 10 No

What is the difference between grep & find? ..

Answer / mahesh raghunandanan

grep is used for searching text patterns within a file which
supports regular expression.only fgrep is used to find
string in an expression.



find is a file locator.
used to search certain files or directories.

Is This Answer Correct ?    74 Yes 11 No

What is the difference between grep & find? ..

Answer / siva

Grep is used to find strings in a file.
Find is used to find a file in a directory or to find directory in the list of directories.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More Unix AllOther Interview Questions

What is major difference between the Historic Unix and the new BSD release of Unix System V in terms of Memory Management?

1 Answers  


Explain about Inodes?

0 Answers   Amazon,


Name key files or directories on a UNIX system that should always be backed up?

1 Answers  


How do you use Unix for Backend Testing ?

1 Answers   Wipro,


Have you used VI editor?

1 Answers   BMC,






What steps are required to perform a bare-metal recovery?

1 Answers  


What is an incremental backup?

2 Answers  


What is the difference between > and >> operators?

6 Answers  


how to raise a suncase?pls explain step by step?

0 Answers   CGI,


what is difference between milestone and run-levels in Solaris ?

0 Answers  


what is a profile?

1 Answers  


What are setuid/setgid in relation to file permissions?

2 Answers   Cap Gemini, IBM,


Categories