2

bash 批量解压缩7z文件

 2 years ago
source link: http://aka863.blogspot.com/2022/01/bash-7z.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

2022年1月21日星期五

bash 批量解压缩7z文件

for f in *.7z

        mkdir ${f%.*}

        7z x  -pabc123 -o${f%.*}  $f

遍历当前文件夹中的7z后缀文件,

先建立以文件名命名的目录,

再用7z命令,将压缩包中的文件,提取到刚才建立的目录中。

7z命令后边-p后边是解压密码。

https://stackoverflow.com/questions/2664740

https://stackoverflow.com/questions/39117025

https://linuxhint.com/read_filename_without_extension_bash/

没有评论:

发表评论


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK