Folder Renaming After Tar Extraction
Posted
by Chris S
on Stack Overflow
See other posts from Stack Overflow
or by Chris S
Published on 2010-05-27T00:54:04Z
Indexed on
2010/05/27
1:01 UTC
Read the original article
Hit count: 196
I have an tarball, myarchive.tar.gz. When I uncompress it using "tar -zxvf myarchive.tar.gz", it creates a folder myarchive-x980-2303-ssioo. What's the easiest way to automatically rename the extracted folder to ensure it matches the name of the archive? I've checked tar's manpage, but it doesn't seem to have an option for this.
© Stack Overflow or respective owner