Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!daver!kesa!djc From: djc@Kesa.COM (Don Christensen) Newsgroups: comp.unix.shell Subject: Re: copying files Message-ID: <1990Dec07.201727.11006@Kesa.COM> Date: 7 Dec 90 20:17:27 GMT References: <1990Dec3.215656.8961@en.ecn.purdue.edu> <28360@mimsy.umd.edu> Organization: Kesa Corporation Lines: 31 chris@mimsy.umd.edu (Chris Torek) writes: >>In article <1990Dec5.021951.28104@en.ecn.purdue.edu> > nichols@en.ecn.purdue.edu (Scott P Nichols) asks how to match `.*' without > matching . and .. (in essence, anyway). >In article emv@ox.com (Ed Vielmetti) writes: >>I usually use .??*, which works unless you have a file like ".a" or >>".Z". >with `.'. You want all but `..'. If any such files exist, the pattern > .[^A--/-^?] >will match them. Note: ^A here represents a literal control-A, and >^? represents either a literal DEL (if you have only 7-bit shells and >files) or meta-DEL (if you have 8-bit shells and files). I typically use .??* because it is the easiest to type and I have rarely (never?) come across a two character `.' file. It seems to me, though, that the shortest way to get all `.' files excluding `.' and `..' is with the following expression: ls -d .[^.]* Don -- Don Christensen <=> djc@kesa.com <=> "Ashes and diamonds, foe and friend; Kesa Corporation <=> ...!mips!kesa!djc <=> they are all equal in the end." Santa Clara, CA <=> ...!daver!kesa!djc <=> -- Pink Floyd