What is the difference between:
find . -name "*.txt" and
find . -name "*.txt" -print ?
I mean what is the use of
find. I see that it prints the results anyway so why is this option available?
In very old versions of find, -print wasn't implicit so was required.
Nowadays, it is the default action but is still useful when combined with -prune to avoid the default action to encompass the pruning. eg:
This won't print files named foo under /tmp: