Path: utzoo!attcan!uunet!cs.utexas.edu!swrinde!mips!smsc.sony.com!tin From: tin@smsc.sony.com (Tin Le) Newsgroups: comp.unix.shell Subject: Re: copying files Keywords: cp Message-ID: <1990Dec13.171546.7020@smsc.sony.com> Date: 13 Dec 90 17:15:46 GMT References: <1990Dec3.215656.8961@en.ecn.purdue.edu> <1990Dec5.021951.28104@en.ecn.purdue.edu> Organization: Sony Microsystems Corp, San Jose, CA Lines: 60 In article <1990Dec5.021951.28104@en.ecn.purdue.edu> nichols@en.ecn.purdue.edu (Scott P Nichols) writes: > >OK, let me restate my question, as none of the answers >I recieved last time worked... > >Here is a listing of my home directory... >(I use csh) > >% ls -la > >total 92 >drwxr-xr-x 10 nichols 1024 Dec 4 16:52 . >drwxr-xr-x312 root 6144 Nov 25 17:14 .. >-rw------- 1 nichols 1837 Dec 4 09:49 .cshrc >drwx------ 2 nichols 1024 Dec 4 16:42 .elm >-rwxr--r-- 1 nichols 0 Oct 19 01:35 .hushlogin >-rw-r--r-- 1 nichols 26 Dec 1 14:30 .informrc >>>>>>>>>>>>>>>>>> other .files excluded <<<<<<<<<<<<<<< >drwx------ 2 nichols 1024 Dec 4 08:37 Mail >drwx------ 5 nichols 1024 Dec 2 18:59 News >>>>>>>>>>>>>>>> other directories excluded <<<<<<<<<<<<<< > >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) > >When I type... I get... >______________ ________ > >ls .* all of the dot files, then all files > in my directory and the previous. > >ls .** all of the dot files, then all files > from the previous directory > >ls * .??? all files in all of my directories > >Any other suggestions? Since you are using csh, how about some regex? Try this: [tin] rn31 242 >/bin/ls .[a-zA-Z0-9]* .Xdefaults .jobdir .oldnewsrc .rnlast .xinitrc.rn31 .Xinitrc .letter .phones .rnlock .xinitrc.save .article .login .plan .rnsoft .calendar .mailrc .pnewsexpert .sh_history .cshrc .mwmrc .profile .signature .exrc .newsrc .rhosts .twmrc [tin] rn31 243 > Seems to do what you wanted above. -- Tin -- .---------------------------------------------------------------------- . Tin Le Work Internet: tin@smsc.Sony.COM . Sony Microsystems UUCP: {uunet,mips}!sonyusa!tin . Work: (408) 944-4157 Home Internet: tin@szebra.uu.net