3
4

More than 1 year has passed since last update.

Google Drive等からダウンロードした連番zipを、構造を保持して解凍する方法(Mac)

Posted at

目的

Google Drive等から巨大ファイルをダウンロードすると、圧縮後のサイズが2GBに収まるように分割された連番zipが得られる。
GUI操作で解凍すると別々にフォルダが展開されてしまいマージが大変なので、構造を保持したまま解凍したい。

方法(stack overflow)

ターミナルで以下を入力

# 連番zipファイルのあるディレクトリ(DirectoryA)に移動
cd DirectoryA
# 解凍先フォルダ(combined)作成
mkdir combined
# すべてのzipファイルをcombinedに解凍
for archive in *.zip
do
unzip "$archive" -d combined
done
3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4