bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-name a/b warning rocks!


From: Jason Holt
Subject: -name a/b warning rocks!
Date: Wed, 13 Aug 2008 21:00:01 -0700

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

[Prev in Thread] Current Thread [Next in Thread]