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 [EMAIL PROTECTED] [EMAIL PROTECTED] 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" -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]