Solaris + find -prune command puzzle
Hi,
I would like to find a file named ups_data on the / filesystem but not search in /tmp and /var and not to search on nfs and autofs file system's.
I think that with Solaris you have to use -prune and not ! but I could be wrong. I think the Solaris find functionality is slightly different to Linux's.
For some reason this is'nt working, but I can't seem to progress.
$ find / -fstype nfs -prune -o -fstype autofs -prune -o -type d -name "/tmp" -prune -o -name "ups_data" -print 2>/dev/null
Thank you
|