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 are different types of shells?

7 Answers   BMC,


. Using sed and grep, write a command which lists files and directories with following properties: (i) created in 1999 (ii) with user's as owner and group

0 Answers  


What are Profilers?

1 Answers   Axis Technologies,


why do you need to have a swap file system?

1 Answers  


what is output mkvg pvname

0 Answers  






HOW DO CREATE A NFS FILE SYSTEM

4 Answers   Mind Tree,


How can u doing testing in Unix environment ?

2 Answers   TCS,


What is virtual memory?

2 Answers   BMC,


Why do inode number start from 1 and not 0 ?

3 Answers  


What are the events done by the Kernel after a process is being swapped out from the main memory?

0 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 are permissions in UNIX?

5 Answers   BMC, University,


Categories