Re: Copy ./ to subdirectory.
On Wed, Aug 29, 2007 at 01:16:50PM +0100, James Preece wrote:
>
> cp: cannot copy a directory, `./', into itself, `backup'
>
> Is there a way to have cp ignore the newly created directory? Something like:
>
> cp -r ./ backup --ignore=backup
>
You could try using tar. Something like
tar --exclude=backup | tar -x --directory=backup
--
Patrick Ouellette pat@flying-gecko.net
kb8pym@arrl.net Amateur Radio: KB8PYM
Living life to a Jimmy Buffett soundtrack
"Crank the amp to 11, this needs more cowbell - and a llama wouldn't hurt either"
Reply to: