what is diff between grep and find

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different components of powercenter?

578


What is a transaction control transformation?

761


What is joiner transformation?

583


What is parallel processing in informatica?

1023


What are the different clients of powercenter?

594






How to convert multiple rows to single row (multiple columns) in informatica

889


What are the prerequisite tasks to achieve the session partition?

709


What are the transformations that cannot be placed between the sort origin and the joiner transformation so that we do not lose the input sort order?

783


How do you promote a non-reusable transformation to reusable transformation?

658


Enterprise data warehouse your projects phase by phase explain?

1458


Global and Local shortcuts. Advantages.

1464


What is Data Caches size?

652


How to display session logs based upon particular dates. If I want to display session logs for 1 week from a particular date how can I do it without using unix. ?

1599


have u done any performance tuning? how u ll do?

1853


how to create user defined function (udf) in informatica

781