top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between grep and find commands?

+1 vote
943 views
What is the difference between grep and find commands?
posted Feb 3, 2016 by Mohammed Hussain

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Find command is used to search for a file with a specific file name in a set of files.
Syntax: find .-name "fileE" -print

grep command is used to search pattren within a file.
Syntax: grep "pattren" filename

answer Feb 4, 2016 by Manikandan J
...