Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!caen!hellgate.utah.edu!uplherc!wicat!meph!gsarff From: gsarff@meph.UUCP (Gary Sarff) Newsgroups: comp.arch Subject: Re: Globbing Message-ID: <00087@meph.UUCP> Date: 15 Mar 91 03:20:40 GMT References: <1991Feb18.152347.28521@dgbt.doc.ca> <474@bria> <19217@cbmvax.commodore.com> <5573:Feb2307:19:4491@kramden.acf.nyu.edu> <00085@meph.UUCP> <10803@dog.ee.lbl.gov> Reply-To: gsarff@meph.UUCP Organization: WICAT Systems Inc., Orem Utah Lines: 46 In article <10803@dog.ee.lbl.gov>, torek@elf.ee.lbl.gov (Chris Torek) writes: >(Sigh, I had hoped my observation that `what works in one system is not >necessarily appropriate/best for all' would end this, but...:) > >In article <00085@meph.UUCP> gsarff@meph.UUCP writes: >>Sorry for the diatribe ... > >I am not going to disagree with your general idea, but you really should >get the details right when you post something like this: > > ... [excised] thanks for fixing my mistakes, I am more of an occasional user of unix than a continuous user. >>Example 3: >> ... I want to do the same scan on the entire disk, >> so for the two OS's we get the following: >> >>wscan /*/*.c include*.h > >(Does /*/ really mean `all directories' and not `the top level'? If so, >how do you restrict the number of levels searched?) > Yes /*/ means all directories. /.*/ means all subdirectories of wherever your current directory is. If you were going to put some limit on things you could say /*.*.*/ say to limit the search to three subdirectories deep. (note as may have become obvious just now we use "." as directory separators, and "/" as leading and terminating chars). To restrict searches there are command line switches, (I went into all this in a post a month or more ago), such as :exclude=, :since= :before=. In that posting I was merely demonstrating that some poster's claim that letting the utilities handle their own command lines would lead to instant chaos as an axiom. _ALL_ of the utilities that come with the OS that take file(s) as arguments take file-lists as arguments, which include multiple wildcarded filespecs separated by commas, and using the above mentioned, plus a few other, switches. And chaos has not ensued at this company or for our users. --------------------------------------------------------------------------- Do memory page swapping to floppies?, I said, yes we can do that, but you haven't lived until you see our machine do swapping over a 1200 Baud modem line, and keep on ticking. ..uplherc!wicat!sarek!gsarff