OFF TOPIC: directory tree script file problem
Elvio Caruana
elvio at cs.um.edu.mt
Wed May 5 11:07:25 UTC 2004
And you can use " mkdir -p <directory-depth> " to create all parent
directories if not found (instead of giving an error).
On Wed, 2004-05-05 at 13:01, d l wrote:
> 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 at yahoo.com> からのメッセージ:
> > 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 at redhat.com
> > To unsubscribe:
> http://www.redhat.com/mailman/listinfo/fedora-list
>
>
> __________________________________________________
> Do You Yahoo!?
> http://bb.yahoo.co.jp/
More information about the fedora-list
mailing list