zipアーカイブがあります。unzip -l myarchive.zipコマンドは、このリストを与えます:
top/subtop/files/1.txt
top/subtop/files2/2.txt
etc
ルートフォルダは、すべてのファイルのトップ/サブトップです。2つのトップ/サブトップフォルダーなしでこれらのファイルを抽出する方法は?
例えば私は、中/ホーム/ myuserの/ public_htmlディレクトリ午前、ときfiles/1.txtとfiles2/2.txt、そのディレクトリに直接抽出することshoud。
試しましたunzip myarchive.zip top/subtop/*が、とにかくtop / subtopディレクトリを作成しました。