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 the difference between grep & find?

3 Answers   HCL,


Which is the most commonly used replacement algorithm?

0 Answers   Aditi Placement Service,


What is Expansion swap?

1 Answers   KISSI,


What does init do? What does inetd do?

1 Answers  


How do you list the files in an UNIX directory while also showing hidden files?

4 Answers  






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

2 Answers  


What is ant_build.sh? Have u seen that file?

0 Answers   BMC,


which is the best book for learning unix and linux?

6 Answers  


What is the job responsibility of a System Administrator (UNIX/LINUX),briefly describe (Also point out system admin's daily job details),specify job type & job description?

2 Answers   HP, ICS Integrated Computer Solutions, TCS,


What does iostat do?

4 Answers   IBM,


What is a filesystem?

3 Answers  


in unix profile contains

1 Answers   BFL,


Categories