copying files
Jeff Beadles
jeff at onion.pdx.com
Sun Dec 16 04:03:06 AEST 1990
In <12758 at medusa.cs.purdue.edu> spaf at 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 at onion.pdx.com
More information about the Comp.unix.shell
mailing list