Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!spdcc!tauxersvilli!alphalpha!nazgul From: nazgul@alphalpha.com (Kee Hinckley) Newsgroups: comp.sys.apollo Subject: Re: backing up files Message-ID: <1991Apr3.053404.6435@alphalpha.com> Date: 3 Apr 91 05:34:04 GMT References: <9104021508.AA11965@pan.ssec.honeywell.com> Organization: asi Lines: 31 In article <9104021508.AA11965@pan.ssec.honeywell.com> thompson@PAN.SSEC.HONEYWELL.COM (John Thompson) 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 >> ... >expand them, though. > /usr/apollo/bin/wbak ?*.[fch] ?*.ftn -dev ct -f 1 >is the base command. I lose track of the escape-char rules, but I imagine >that you might need something along the lines of > /usr/apollo/bin/wbak \?\*.\[fch\] \?\*.ftn -dev ct -f 1 >in order to prevent cron or it's default shell from expanding them. Since you need recursive what you really want is /usr/apollo/bin/wbak $SRC/.../\?\*.\[fch\] $SRC/.../\?\*.ftn Single quotes would be easier, but then you probably want the variable expansion. I do wish Unix had a ... wildcard. You could dispense with 90% of the times when you use find. -- Alfalfa Software, Inc. | Poste: The EMail for Unix nazgul@alfalfa.com | Send Anything... Anywhere 617/646-7703 (voice/fax) | info@alfalfa.com I'm not sure which upsets me more: that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's.