Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!Diamond!mlandau From: mlandau@Diamond.BBN.COM (Matt Landau) Newsgroups: comp.unix.questions Subject: Re: finding NFS dirs in csh? Message-ID: <2565@slate.Diamond.BBN.COM> Date: Tue, 2-Dec-86 14:13:03 EST Article-I.D.: slate.2565 Posted: Tue Dec 2 14:13:03 1986 Date-Received: Tue, 2-Dec-86 22:04:41 EST References: <772@gcc-milo.ARPA> Reply-To: mlandau@Diamond.BBN.COM (Matt Landau) Organization: BBN Laboratories, Inc., Cambridge, MA Lines: 25 Summary: try "man find" (if you're on a Sun) In comp.unix.questions (article <772@gcc-milo.ARPA>), brad@gcc-milo.ARPA (Brad Parker) writes: >Does anyone know how to tell if a file is "remote" in a csh (or sh) script? > >I need to tell if a directory is a remote mount point or below a remote >mount point. I want to exclude remote directories in a script which >spans the file systems from root (/) - you know... "find / ..." From "man find" on a Sun 3 running SunOS 3.0: find recursively descends the directory hierarchy for each pathname in the pathname-list (that is, one or more path- names) seeking files that match a boolean expression written in the primaries given below.... -fstype type True if the filesystem to which the the file belongs is of type type, where type is typically 4.2 or nfs That ought to about do it, don't you think? -- Matt Landau BBN Laboratories, Inc. mlandau@diamond.bbn.com 10 Moulton Street, Cambridge MA 02238 ...seismo!diamond.bbn.com!mlandau (617) 497-2429