Re: OFF TOPIC: directory tree script file problem

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

 



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



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux