Dr. Axel Braun <axel.br...@gmx.de> ha escrit:

> I used tar for a while now to extract zip files with the command

Tar cannot be used to extract zip files. It can, however, be used to
extract tar archives *compressed with zip command*, provided that
certain conditions are met (see below).

>   tar --strip-components 3 -xzf /tmp/${lang_file}

This command can succeed only if:

1) /tmp/${lang_file} is a valid tar archive compressed with zip
and
2) It (zip file, not the archive) contains only one entry. In other
words, "unzip -l /tmp/${lang_file} | tail -n 1" shows something like:

   522240                     1 file
        
Regards,
Sergey

Reply via email to