I have the following gzip file: hdf5-1.8.18.tar.gz
. When I unzip the file with the following command:
gunzip < hdf5-1.8.18.tar.gz | tar xf -
It unzips into the created following directory: hdf5-1.8.18
. This directory is not really convenient to use cause of the "-" therefore I changed the name of the directory by using the following command:
mv hdf5-1.8.18 hdf5
But using this command I lost the "1.8.18" version information: Therefore I can do an ugly workaround like:
mkdir hdf5
mv hdf5-1.8.18 hdf5/1.8.18
I find this solution quiet ugly therefore I would like to know if there is no more straight forward way to do that. Thank you!