how about: find . -name .snapshot -prune -o -name *.txt -print
On Fri, 14 Nov 2003, Stephane Bentebba wrote:
the only trick I know is : mount one level up above the actual point you mount then, launch your find inside the subdir because .snapshot are not visible one level down an mount point
if you mount /vol/vol0/mytest in your /mnt/mytest and try to launch a find in /mnt/mytest, find will go inside .snapshot
beside that, if you mount /vol/vol0 in /mnt/mytest2 you can cd in /mnt/mytest2/mytest and launch your find, this time, it won't go inside .snapshot
the best would be to code a new GNU version of the find utility to integer an exclude path mechanism : )
Darragh, Stephen J wrote:
Hi,
I am having trouble using unix find and excluding anything in .snapshot.
I can't see any flag for exclude
Suggestions???
Thanks Stephen Darragh
-- -- jetez un oeil ici http://www.sensiva.com/ -- -- have a look here http://www.sensiva.com/ --