unzip 批量解压多个文件+End-of-central-directory signature not found
来源:互联网 发布:手机刷机后数据恢复 编辑:程序博客网 时间:2024/05/20 13:05
#find . -name ‘*.zip’ -exec unzip {} \;
2.
#ls *.zip | xargs -n1 unzip
3.
# for i in *
do
unzip $i
done
unzip批量解压到指定目录下
在yyy目录下有很多.zip文件,里面有个xxx目录,要把.zip文件以本身文件名建一个目录 解压到xxx目录下。shell脚本如下
for file in *.zip
do
filename=$(echo $file|cut -d'.' -f1)
unzip $file -d xxx/$filename
done
自己记录下。主要用到字符串变量处理,一开始想到,没想到用sed cut grep awk等。。
配合着资料。终于 成功了!
Linux 下,使用unzip解压时,报错:
unzip trunk.zip
Archive: trunk.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of trunk.zip or
trunk.zip.zip, and cannot find trunk.zip.ZIP, period.
文件大小为 2.2G,可能是 unzip 设置了这个限制吧。在网上查到要用 jar 来解
jar xvf trunk.zip
如果出现
jar:Command not found
要用yum下载
yum -y install java-1.6.0-openjdk-devel
再次运行
jar xvf trunk.zip
就能成功,看来,unzip局限蛮大的呀。
Linux 下,使用unzip解压时,报错:
unzip trunk.zip
Archive: trunk.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of trunk.zip or
trunk.zip.zip, and cannot find trunk.zip.ZIP, period.
文件大小为 2.2G,可能是 unzip 设置了这个限制吧。在网上查到要用 jar 来解
jar xvf trunk.zip
如果出现
jar:Command not found
要用yum下载
yum -y install java-1.6.0-openjdk-devel
再次运行
jar xvf trunk.zip
就能成功,看来,unzip局限蛮大的呀。
- unzip 批量解压多个文件+End-of-central-directory signature not found
- unzip命令出错 End-of-central-directory signature not found
- Linux 使用unzip解压时报错End-of-central-directory signature not found
- End-of-central-directory signature not found
- linux安装weblogic报错: End-of-central-directory signature not found.Error during init, error code = 2
- 解压zip文件出现-bash:unzip:commond not found
- Linux unzip解压多个文件
- linux unzip无法解压-bash: unzip: command not found
- 解决无法安装这个包PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
- 解压文件 Unzip
- unzip解压中文名称文件
- unzip解压所以文件
- 一次解压多个文件:ls mrf487* | xargs -n1 unzip -P pswd
- -bash: unzip: command not found
- -bash: unzip: command not found
- 解压.zip文件命令:unzip
- Linux unzip --解压zip文件
- unzip解压文件乱码问题解决
- Android GCM使用
- 批处理获得文件大小
- linux系统编程之基础必备(三):文件描述符file descriptor与inode的相关知识
- python 多线程自动刷票程序
- 使用Xmarin Stdio开发Android应用(一)
- unzip 批量解压多个文件+End-of-central-directory signature not found
- 使用《红孩儿工具箱》开发基于Cocos2d-x的《打地鼠》游戏
- form表单中action和onsubmit的表单检查区别
- ognl.OgnlException: target is null for setProperty(null, "name", [Ljava.lang.String;@f6
- js的confirm方法学习
- <o(2n)最坏复杂度求数组的最大最小值
- sql Server中float、real、decimal(numeric)数据类型的区别
- iOS 获取手机的型号,系统版本,软件名称,软件版本
- removeFromSuperview没动画的原因