当前位置:网站首页>shell批量解压当前文件夹下的zip文件
shell批量解压当前文件夹下的zip文件
2022-08-07 09:03:00 【知识在于分享】
#!/bin/sh
for file in `ls train_*.zip`
do
filename=$(basename "$file")
fname="${filename%.*}"
echo "Input File: $file"
echo "Input File: $filename"
echo "Input File: $fname"
unzip $file -d $fname
done
批量解压,解压到名字为去后缀的文件夹下
参考如下:
边栏推荐
- 2022华数杯数学建模-在线文档
- Addition, deletion, search and modification of doubly linked list
- ABP 6.0.0-rc.1的新特性
- 基于密码芯片的 DDR 加速器的设计与实现
- 帕累托分析中的累计优化
- #yyds Dry Goods Inventory# [Yugong Series] August 2022 Go Teaching Course 004-Go Code Comments
- 微突发丢包的艺术
- LVS+Keepalived高可用群集部署
- redis的原理和源码-客户端结构体的介绍和源码解析
- redis的原理和源码-redis各数据类型的编码格式和数据结构SDS、list、dict、zskiplist、intset、ziplist、quicklist、listpack、rax、stream
猜你喜欢

In-depth analysis of Spark SQL illustrates the execution process and application scenarios of five Join strategies

今天的思考

jenkins配置自动打包

The principle and source code of redis - the principle and source code analysis of cluster (on)

微服务系列一:微服务的优势与劣势

the largest area of the island

基于miniprogram-ci的微信小程序的CI以及接入钉钉通知

redis的原理和源码-数据持久化方式RDB的介绍和源码解析

redis的原理和源码-redis的六种数据类型基本介绍:string、hash、list、set、zset、stream

3D~RPG游戏的制作
随机推荐
30.01 C/S and TCP/IP protocols are interesting and vivid
In-depth analysis of Spark SQL illustrates the execution process and application scenarios of five Join strategies
What is an SRM system?What is the role? How does the enterprise apply the SRM system?
家居江湖掀起「夺魁战」,红星美凯龙如何打造品牌增量场?
An API writing method
redis的原理和源码-配置文件解析
LeetCode [206. Reverse linked list] (1)
Prediction of Operations Research Fundamentals [2]
redis的原理和源码-数据过期expire的介绍
岛屿的最大面积
Arthas 使用报错
【C语言】汉诺塔
一文读懂微服务架构的分解设计
数组的创建以及常见的方法
力扣:1049. 最后一块石头的重量 II
redis的原理和源码-事务机制
Why Move will overtake Solidity as the mainstream programming language?
ABP 6.0.0-rc.1的新特性
多路复用技术
3.ROS通信机制进阶