find and cp with directory structure.
Steve Flynn
anothermindbomb at gmail.com
Mon Oct 24 11:47:51 UTC 2011
On 24 October 2011 12:00, David Shochat <david.shochat at gmail.com> wrote:
> Perl's File::Find module is great for this sort of thing, assuming you
> know Perl.
>
You think the File:Find module can be used to create parent directories? I
suspect not.
The OP is asking how to copy a file from one directory to another creating
the filesystem hierarchy if required. For this you'll need to either create
the filesystem first using mkdir -p or pass the --parents parameter to cp.
--
Steve
When one person suffers from a delusion it is insanity. When many people
suffer from a delusion it is called religion.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20111024/9303ad8e/attachment.html>
More information about the ubuntu-users
mailing list