[Gllug] cp command

Luis M. Cruz luismcv at gmail.com
Mon Nov 27 10:51:54 UTC 2006


  Hi,

On 11/26/06, Andrew Black <andrew-li at black1.org.uk> wrote:
> John G Walker wrote:
>
> >
> > To copy the contents from subdirectory A into subdirectory B:
> >
> > cp ,/A/* ./B
>
> I have some questions and observations
>   - this doesnt copy files that start with .  - how can you get it to do
> this?

  cp -R A/.* B

  although you will get some warnings because of the . and ..
directories, it works.

>   - a -v option might be useful to display what you are doing
>   - it assumes that directory B exists (otherwise it tries to write to a
> file called B, and fails if there is more than one file in A).
>   - what is the difference between using ./A and plain A ?

   AFAIK, there is no difference.

-- 
______________________________________________________________________________
Luis M. Cruz <luismc at fraggelrock.com>                   Systems
Administrator/Developer
PGP keyIDs: 0x6848D470 (DSS) / 0x255E9505 (RSA)
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list