It copies all files/directories starting with . that have more than 2 more
characters in their names.  I have used it on about 4 different unices, in
csh, bash, and zsh...  Far as I know, it will work every time.

> -----Original Message-----
> From: Alan Mead [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, July 07, 2000 3:10 PM
> To:   [EMAIL PROTECTED]
> Subject:      RE: Copying hidden files with cp
> 
> Does that always work?  I learnt to type something like .[a-z]* on Solaris
> 
> (or SunOS, it was a while back).
> 
> -Alan
> 
> At 12:55 PM 7/7/00 , you wrote:
> >cp .??*
> >
> > > -----Original Message-----
> > > From: Brian Wright [SMTP:[EMAIL PROTECTED]]
> > > Sent: Friday, July 07, 2000 12:33 PM
> > > To:   [EMAIL PROTECTED]
> > > Subject:      Copying hidden files with cp
> > >
> > > Hi, list!
> > >
> > > Is there a quick and dirty way to copy all hidden files with cp?  I
> tried
> > > using cp .* but that also gets ..
> > >
> > > I would do cp .a* .b* ... .z* but that would be a pain to type. :)
> > >
> > > Thanks,
> > > Brian
> > >
> > >
> _________________________________________________________________________
> > > Brian Wright                                   Aturna Communications
> Inc.
> > > [EMAIL PROTECTED]                                          Internet
> Services
> > >                                                 WWW
> http://www.aturna.net
> > >
> _________________________________________________________________________
> > >
> > >
> > > --
> > > To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> > > as the Subject.
> >
> >
> >--
> >To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> >as the Subject.
> 
> 
> -- 
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to