Find command is used to search for a file with a specific file name in a set of files.Syntax: find .-name "fileE" -printgrep command is used to search pattren within a file.Syntax: grep "pattren" filename
The main difference is that "find" is a file locator while "grep" searches for patterns within a file.
Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.
Copyright ©2003-2010 CoolInterview.com, All Rights Reserved. Privacy Policy | Terms and Conditions Page URL: http://www.coolinterview.com/interview/13987/default.asp?cachecommand=bypass