in reply to tar options

I don't think that there is anyway to do this with tar. What you can do is rename the directory right after you extract the archive.

The code below will work for tars that have a single directory in them.

#!/usr/bin/perl my $name = "xxxx.tar"; my $oldname = "xxxx"; my $newname = "myxx"; mkdir "_extract"; system("tar -C _extract -xf $name"); rename "_extract/$oldname", "$newname"; rmdir "_extract";
-- gam3
A picture is worth a thousand words, but takes 200K.