What is the difference between find with grep?
问题 What is the difference between these command: find . –type f –name '*txt*' and find . –type f | grep 'txt' I tried to run this and there is a difference but I want to know why? 回答1: The Major difference is FIND is for searching files and directories using filters while GREP is for searching a pattern inside a file or searching process(es) FIND is an command for searching file(s) and folder(s) using filters such as size , access time , modification time. The find command lists all of the files