2014年3月25日

压缩文件夹内每个子文件夹到单独的压缩包

摘要: ALL_DIR_NEED_ZIP=("dir1" "dir2" "dir3")ROOT_DIR="root_dir"for DIR_ZIP in ${ALL_DIR_NEED_ZIP[@]}do ALL_DIR=$(ls "$ROOT_DIR/$DIR_ZIP") for DIR in ${ALL_DIR[@]} do 7z a -tzip "$ROOT_DIR"/"$DIR_ZIP""_zip"/$DIR.zip "$ROO 阅读全文

posted @ 2014-03-25 12:08 空娴 阅读(361) 评论(0) 推荐(0) 编辑

导航