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 does the ?route? command do?

2 Answers  


What are the processes that are not bothered by the swapper? Give Reason.

1 Answers  


How do you use Unix for Backend Testing ?

1 Answers   Wipro,


I am new to Unix and Unix Shell scripting could you guide me on how to go about these subjects and where to start from with concern to Oracle?. I also would like to know where does UNIX shell Scripting help in terms of development of a application in Oracle? I have no clue in the subject so do help me. Thank You Neelima

0 Answers  


What is INODE?

6 Answers   BMC,






How do you execute a UNIX command in the background?

2 Answers  


If Media Server fails. What are the steps to be followed? Can anyone please reply for this question Thanks, Ganesh

0 Answers   HCL, IBM,


What are the files in /etc directory?

6 Answers   TCS, Wipro,


What is the difference between windows environment and Unix environment ?

8 Answers   Oracle,


which is the best book for learning unix and linux?

6 Answers  


Telnet sometimes doesn't permit root logons,how will you then change a file writable only by root on a remote host?

1 Answers  


what is difference between kernel and shell?

18 Answers   Juniper Networks,


Categories