domo@tsa.co.uk (Dominic Dunlop) (11/05/90)
Running strings across the A/UX 2.0 find command (the way one does), I spot two undocumented options: -fstype Appears only to traverse mount points if mounted filesystem is of the named type. What names are acceptable? I don't know. -prune Apparently taken from a fairly recent draft of the 1003.2 shell and tools standard: ``Causes find to stop its descent from that point in the file hierarchy.'' Huh? What use is this, given that -prune does NOT take an argument naming the directory at which to stop, or a number giving the number of levels to descend. Would anybody care to elucidate? (I was looking for BSD's -xdev or System V.3's -mount and/or -local. No luck.) -- Dominic Dunlop
cappella@Apple.COM (Mike Cappella) (11/10/90)
In article <1990Nov5.124512.5090@tsa.co.uk> domo@tsa.co.uk (Dominic Dunlop) writes: > >Running strings across the A/UX 2.0 find command (the way one does), I >spot two undocumented options: >-prune Apparently taken from a fairly recent draft of the 1003.2 shell > ... >Would anybody care to elucidate? Let's say you are trying to remove all SCCS directories within a source tree. You would use the find command % find src -name SCCS -exec /bin/rm -rf {} \; -prune -print Find will stop at an SCCS directory, execute rm -rf, and then *not* try to progress into the directory... Make sense? -Mike -- ---- Mike Cappella Internet: cappella@apple.com Apple Computer, Inc. UUCP: {sun,voder,amdahl,decwrl}!apple!cappella Cupertino, California 408 974-4288 A/UX Department MS 58A