[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: automatic overwrite with cp



Or, alternatively:

yes | cp -apRv source/* /destination/



----------------------------------------------------------------------
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
clists@perrin.socsci.unc.edu * andrew_perrin (at) unc.edu


On Tue, 26 Aug 2003, [iso-8859-1] Roberto Sanchez wrote:

>  --- alex <radsky@ncia.net> escribió:
> > I've been trying to copy the contents of a partition  (source)  to
> > another partition  (destination) that has a large number
> > of files that need to be overwritten.   The command I've tried is:
> >
> >      # cp -apRv  source/* /destination/
> >
> > The command works but it requires that I manually respond 'yes' for each
> > overwrite.  I thought that the r or R option
> > would do an automatic overwrite but apparently it doesn't.
> >
> > What should the option be to do automatic overwrites with the ' cp '
> > command?
> >
>
> add --reply=yes (it's in the man page).
>
> -Roberto
>
> ___________________________________________________
> Yahoo! Messenger - Nueva versión GRATIS
> Super Webcam, voz, caritas animadas, y más...
> http://messenger.yahoo.es
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>



Reply to: