untar smartly unpacks tar files. Instead of just calling
tar (z)xfv tarfile, just use untar tarfile, and untar will
take care of
Tar files not containing a single top-level directory, but a plethora
of files and directories instead, which will clutter up the directory
you're unpacking it in. If untar detects that a tarfile doesn't contain
a single top-level directory, it will create one, following the naming
convention of the tarfile.
Compressed and non-compressed tarfiles
Copyright 2004 by Mike Schilli, all rights reserved.
This program is free software, you can redistribute it and/or
modify it under the same terms as Perl itself.