Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!snorkelwacker.mit.edu!mit-eddie!uw-beaver!zephyr.ens.tek.com!tektronix!nosun!qiclab!onion!jeff From: jeff@onion.pdx.com (Jeff Beadles) Newsgroups: comp.unix.shell Subject: Re: copying files Message-ID: <1990Dec15.170306.23372@onion.pdx.com> Date: 15 Dec 90 17:03:06 GMT References: <24@kaspar.UUCP> <4914@mahendo.Jpl.Nasa.Gov> <12758@medusa.cs.purdue.edu> Lines: 25 In <12758@medusa.cs.purdue.edu> spaf@cs.purdue.edu (Gene Spafford) writes: >How to list all non . and .. files/directories in the current >directory that start with . without using pipes (Bourne shell or ksh): >ls -ad .[!.] .??* -or- echo .[!.] .??* Well, this is one of the nicer ones that I've seen, but it won't work on all systems. There are several versions of 'sh' out there that don't support [!pattern]. Unfortunately, I use one of them. :-) Script started on Sat Dec 15 08:58:02 1990 jo:jeff> sh $ cd $ touch .a .b .c $ ls -ad .[!.] .. jo:jeff> exit script done on Sat Dec 15 08:58:37 1990 Sigh, -Jeff -- Jeff Beadles jeff@onion.pdx.com