Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!crackers!m2c!wpi.WPI.EDU!fenn From: fenn@wpi.WPI.EDU (Brian Fennell) Newsgroups: comp.unix.shell Subject: Re: copying files Keywords: cp Message-ID: <1990Dec6.230153.14856@wpi.WPI.EDU> Date: 6 Dec 90 23:01:53 GMT References: <1990Dec5.021951.28104@en.ecn.purdue.edu> <4615@umbc3.UMBC.EDU> <169@raysnec.UUCP> Organization: Worcester Polytechnic Institute Lines: 21 In article <169@raysnec.UUCP> shwake@raysnec.UUCP (Ray Shwake) writes: >rouben@math13.math.umbc.edu (Rouben Rostamian) writes: > >>In article <1990Dec5.021951.28104@en.ecn.purdue.edu> nichols@en.ecn.purdue.edu (Scott P Nichols) writes: >>| >>|Do any of you UNIX wizards know how to even list all of >>|the names of the files which begin '.' (besides, of course >>|the files in the root (second line of list) >>| > >>Try >> ls -d .* > > For some users on some systems, this will list both current directory >(.) and parent directory (..), which is not what is required. Try instead: > > ls -d .??* ls -dal `ls -da .* | grep -v '^\.$' | grep -v '^\.\.$' ` sheeeeeesh