Re: tar and directories

From: mbox mbarsalou <barjunk@attglobal.net>
Date: Thu Dec 02 2004 - 21:03:29 AKST

I'm trying to do all of this from a PHP script....is this still the
right way to go?

Mike B.
On Thu, 2004-12-02 at 20:25, Jacob Ward wrote:
> yeah, i would've just untared it, renamed it, and retard it...retared it.
>
> JP
>
> On Thu, 2 Dec 2004 02:30:47 -0800, Piet van Weel <pmvw@earthlink.net> wrote:
> > That's a great question!
> >
> > I've never thought about it..
> > I'm assuming you want it to stay in the tarball...
> >
> > I think the only option to modify the internal structure is to use mc.
> > If I remember right you can modify nearly everything about a tar file from
> > there.
> >
> > Or you could just extract everything...
> > mv dir1 mydir
> >
> > and then re-tar it.
> >
> > Piet
> >
> >
> > >> if a tar file has directories like this:
> > >>
> > >> dir1/dir2/file1
> > >> dir1/dir2/dir3/file2
> > >> dir1/file3
> > >>
> > >> And I want to change 'dir1' into 'mydir'. Can I do that using a tar
> > >> option switch or do I have to use trickery. I looked at the man page,
> > >> but nothing obvious popped out at me.
> >
> > ---------
> > To unsubscribe, send email to <aklug-request@aklug.org>
> > with 'unsubscribe' in the message body.
> >
> >

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Thu Dec 2 21:01:41 2004

This archive was generated by hypermail 2.1.8 : Thu Dec 02 2004 - 21:01:41 AKST