what is diff between grep and find

Answers were Sorted based on User's Feedback



what is diff between grep and find..

Answer / shalu

grep is used for finding any string in the file.
syntax - grep <String> <filename>
example - grep 'compu' details.txt
display the whole line,in which line compu string is found.

find is used to find the file or directory in given path,
syntax - find <filename>
example - find compu*
display aal file name starting with compu

Is This Answer Correct ?    28 Yes 2 No

what is diff between grep and find..

Answer / lokesh

grep searches pattern in the file
where find command searches the pattern .but major
differencce of find commands is it evaluates
expression given precedences to dir ,filename and
evaluated value will be searched in directory or in file

Is This Answer Correct ?    0 Yes 0 No

what is diff between grep and find..

Answer / usha

find command will look for a perticuler file formet

Grep command will take all PATTERN of files

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Informatica Interview Questions

How will you check the bottle necks in informatica? From where do you start checking?

3 Answers   HCL,


I have 5 sessions s1,s2,s3,s4 & s5 and i want execute s1,s2,s3,s5 after s4. How?

8 Answers   DELL,


Kimball and Inmon methodologies?

2 Answers  


What is lookup transformation?

0 Answers  


Why union transformation is an active transformation?

0 Answers   Informatica,






Performance tuning( what you did in performance tuning)

0 Answers   Infosys,


. Design a mapping, first two phone calls received by a customer must be represented as "Home" , "Office" and the next calls must be concatinated and represented as "Other".Look at the below tables :: Source Definition Customer Phone_Number A 9848403211 A 9812675432 A 9112356788 A 9876503276 B 9567890765 B 9876098567 AND THE TARGET IS Customer Home Office Other A 9848403211 9812675432 9112356788,9876503276 B 9567890765 9876098567 Null

3 Answers  


Difference between Data and Index Caches?

0 Answers   Informatica,


Could any one to tell How to use the Oracle Analytic functions in Informatica?

1 Answers  


can a port in expression transf be given the name DISTINCT

3 Answers  


suppose we are using dynamic lookup cache and in lookup condition the record is succeeded but in target it is failed due to some reasons then what happened in the cache ?

3 Answers  


Why update strategy and union transformations are active?

0 Answers  


Categories