What is the difference between these command:
find . –type f –name \'*txt*\'
and
find . –type f | grep \'txt\'
When you have a path with txt in the directory name, the second command will find a match. When you do not want to match paths like txtfiles/allfiles.tgz and transactions/txtelevisions/bigscreen.jpg you will want to use the first.
txt
txtfiles/allfiles.tgz
transactions/txtelevisions/bigscreen.jpg