for d in *.tar.gz ; do tar -xvzf "$d".tar.gz -C some_custom_folder_name done