OFF TOPIC: directory tree script file problem
Doncho N. Gunchev
mr700 at globalnet.bg
Wed May 5 11:19:31 UTC 2004
On Wednesday 05 May 2004 13:47, Mick Mearns wrote:
> Hello list;
> for some time I have been struggling with a script problem.
>
> What I want to do is scan a directory structure and re-create it
> without any files.
>
> When I download files I put them into my home directory and then later
> copy them to /mnt/DOWNLOADS
>
> I want to copy the directory structure of /mnt/DOWNLOADS into
> /home/mick
> without any files.
how about this?
--- cut ---
cd # go to your home or go to the dir where you want the dir structure
(cd /mnt/DOWNLOADS; find . -type d) | xargs mkdir -p
cut ---
--
Regards,
Doncho N. Gunchev Registered Linux User #291323 at counter.li.org
GPG-Key-ID: 1024D/DA454F79
Key fingerprint = 684F 688B C508 C609 0371 5E0F A089 CB15 DA45 4F79
More information about the fedora-list
mailing list