GNU bug report logs - #9611
Copy an item with its parent directory

Previous Next

Package: coreutils;

Reported by: Peng Yu <pengyu.ut <at> gmail.com>

Date: Tue, 27 Sep 2011 13:25:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Peng Yu <pengyu.ut <at> gmail.com>
Subject: bug#9611: closed (Re: bug#9611: Copy an item with its parent
 directory)
Date: Tue, 27 Sep 2011 13:31:04 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#9611: Copy an item with its parent directory

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 9611 <at> debbugs.gnu.org.

-- 
9611: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9611
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Pádraig Brady <P <at> draigBrady.com>
To: Peng Yu <pengyu.ut <at> gmail.com>
Cc: 9611-done <at> debbugs.gnu.org
Subject: Re: bug#9611: Copy an item with its parent directory
Date: Tue, 27 Sep 2011 14:29:07 +0100
tags 9611 notabug

On 09/27/2011 02:23 PM, Peng Yu wrote:
> Hi,
> 
> Suppose I have a file 'a/b/c/d/e/f', I want to copy it to 'target'
> with the parent 'd/e'. I.e., the resulted file is 'target/d/e/f'.
> 
> I can make a bash script to do so, but I wondering if there is an
> existing command or option. Thanks!
> 

(cd a/b/c && cp --parents d/e/f /path/to/target)

cheers,
Pádraig.

[Message part 3 (message/rfc822, inline)]
From: Peng Yu <pengyu.ut <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Copy an item with its parent directory
Date: Tue, 27 Sep 2011 08:23:33 -0500
Hi,

Suppose I have a file 'a/b/c/d/e/f', I want to copy it to 'target'
with the parent 'd/e'. I.e., the resulted file is 'target/d/e/f'.

I can make a bash script to do so, but I wondering if there is an
existing command or option. Thanks!

-- 
Regards,
Peng



This bug report was last modified 13 years and 300 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.