Re: OFF TOPIC: directory tree script file problem

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

 



du /mnt/DOWNLOADS will give you a recursive list about the
directory sturture and files. Use regular expression to
filter the output to something you want then.

--- Mick Mearns <off_by_1@xxxxxxxxx> からのメッセージ:
> 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.
> 
> Then I can put files where they belong without
> duplication.
> 
> Periodicaly I burn /mnt/DOWNLOADS to CD for safety.
> 
> I cannot figure out how to create the empty
> directory tree.
> I have tried various incantations of sed/cut/file
> and managed to
> destroy the file system on a test box! (I was root)
> 
> Help would be appreciated.
> 
> Thanks
>    Mick M.
> 
> 
> =====
> The glass is exactly twice as large as it needs to
> be.
> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs  
> http://hotjobs.sweepstakes.yahoo.com/careermakeover 
> 
> 
> -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe:
http://www.redhat.com/mailman/listinfo/fedora-list


__________________________________________________
Do You Yahoo!?
http://bb.yahoo.co.jp/



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

  Powered by Linux