I just discovered this warning message, and I think it's the most useful
warning message I've ever received:

$ find . -name a/b
find: warning: Unix filenames usually don't contain slashes (though
pathnames do).  That means that '-name a/b' will probably evaluate to false
all the time on this system.  You might find the '-wholename' test more
useful, or perhaps '-samefile'.  Alternatively, if you are using GNU grep,
you could use 'find ... -print0 | grep -FzZ a/b'.

That was incredibly helpful!  Thanks to whoever wrote that.

Reply via email to