#!/usr/bin/env bash XZ_OPT=-9 F=$(basename "$1") mkdir /tmp/"$F" tar -xzf "$1" -C /tmp/"$F" tar -cJf "$1".tar.xz /tmp/"$F"