emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#9611: closed (Copy an item with its parent directo


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#9611: closed (Copy an item with its parent directory)
Date: Tue, 27 Sep 2011 13:31:03 +0000

Your message dated Tue, 27 Sep 2011 14:29:07 +0100
with message-id <address@hidden>
and subject line Re: bug#9611: Copy an item with its parent directory
has caused the debbugs.gnu.org bug report #9611,
regarding Copy an item with its parent directory
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
9611: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9611
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- 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



--- End Message ---
--- Begin Message --- Subject: Re: bug#9611: Copy an item with its parent directory Date: Tue, 27 Sep 2011 14:29:07 +0100 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0
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.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]