Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!samsung!umich!terminator!dabo.citi.umich.edu!rees From: rees@dabo.citi.umich.edu (Jim Rees) Newsgroups: comp.sys.apollo Subject: Re: backing up files Message-ID: <50c5f213.cb12@dabo.citi.umich.edu> Date: 4 Apr 91 15:06:01 GMT References: <9104021508.AA11965@pan.ssec.honeywell.com> <1991Apr3.053404.6435@alphalpha.com> Sender: usenet@terminator.cc.umich.edu (usenet news) Reply-To: rees@citi.umich.edu (Jim Rees) Organization: University of Michigan IFS Project Lines: 18 In article <1991Apr3.053404.6435@alphalpha.com>, nazgul@alphalpha.com (Kee Hinckley) writes: >> I want to back up all the .ftn, .f, .c, and .h files in a directory tree >> that is about 40 meg binaries and source. I did a tried this: >> >> wbak `find $SRC \( -name '*.[fch]' -o -name '*.ftn' \) ...` \ >> -dev ct -f 1 ... > /usr/apollo/bin/wbak \?\*.\[fch\] \?\*.ftn -dev ct -f 1 Since you need recursive what you really want is /usr/apollo/bin/wbak $SRC/.../\?\*.\[fch\] $SRC/.../\?\*.ftn If you would rather use Unix wildcard syntax, you can still use find: find $SRC \( -name '*.[fch]' -o -name '*.ftn' \) ... >file-list wbak '*' -dev ct -f 1