mightydreams at gmail.com
Wed Oct 6 08:05:43 UTC 2010
I used find in following fashion to exclude find to search in directory /opt
find / -name java -prune -o -name /opt -print
but I got following warning
find: warning: Unix filenames usually don't contain slashes (though
pathnames do). That means that '-name `/opt'' 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 `/opt''.
did I do some thing wrong?
More information about the ubuntu-users