If I have a tar.gz archive containing a single folder named like
<somename>-<somenumber>, how do I extract it so it unpacks into a folder called
For example, the file
somearchive.tar.gz contains a top-level folder
somearchive-0.1.2, and I tried something like:
tar xvfz somearchive.tar.gz --transform s/[a-zA-Z]+\-[0-9\.]+/somearchive/
but that extracts it to the default folder.