Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!snorkelwacker.mit.edu!hsdndev!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!crdgw1!sixhub!davidsen From: davidsen@sixhub.UUCP (Wm E. Davidsen Jr) Newsgroups: comp.unix.shell Subject: Re: Setting (Recursively) Modes on Files Message-ID: <2746@sixhub.UUCP> Date: 27 Dec 90 03:04:02 GMT References: <5389@cuuxb.ATT.COM> Reply-To: davidsen@sixhub.UUCP (bill davidsen) Distribution: usa Organization: *IX Public Access UNIX, Schenectady NY Lines: 16 In article <5389@cuuxb.ATT.COM> dmeeks@cuuxb.UUCP (David L. Meeks) writes: | sure all arguments to 'find' are white-space separated. I believe | one could also use: | | find . -type f ! -name "s.*" ! -name "p.*" -print |xargs chmod g+w | | which would also eliminate the 'p.' files from the list. Or ! -name '[sp].*' since these are glob format wildcards on names (shell rules, not regular expressiln rules). -- bill davidsen - davidsen@sixhub.uucp (uunet!crdgw1!sixhub!davidsen) sysop *IX BBS and Public Access UNIX moderator of comp.binaries.ibm.pc and 80386 mailing list "Stupidity, like virtue, is its own reward" -me