例: 大量のディレクトリ毎に個別に tar.gz に圧縮する
#!/bin/sh
# ディレクトリ名のリスト
array=(
"0000"
"0001"
"0002"
)
for i in ${array[@]}; do
echo "start tar ${i}"
tar -zcf ${i}.tgz ${i}
done
Go to list of users who liked
More than 3 years have passed since last update.
例: 大量のディレクトリ毎に個別に tar.gz に圧縮する
#!/bin/sh
# ディレクトリ名のリスト
array=(
"0000"
"0001"
"0002"
)
for i in ${array[@]}; do
echo "start tar ${i}"
tar -zcf ${i}.tgz ${i}
done
Register as a new user and use Qiita more conveniently
Go to list of users who liked