当前位置:网站首页>shell iterates over folders and outputs
shell iterates over folders and outputs
2022-08-10 08:59:00 【RemoteDev】
dir=/usr #default directoryif [ -n "$1" ]; then //if parameter 1 is not emptydir=$1 #Modify the default directory to the parameter valueecho "Directory: ${dir}" #Display directoryelseecho "first argument is empty"ficd ${dir} #Enter the directory#Loop through the directory `ls -d */` command to get the directory setfor item in `ls -d */`; doecho ${item} #output directorydoneEffect:

边栏推荐
- 1499. The maximum pile.then/deque
- 原型和原型链
- Compilation failure:找不到符号
- shell遍历文件夹并输出
- Guys, may I ask, the oraclecdc error report is not serialized, but I see that the source code does not inherit serialization, what is the reason?
- Binary tree --- heap
- 对称加密与非对称加密的区别
- 打工人的第27天-平凡但不平淡的日子
- 【微服务架构】为故障设计微服务架构
- 封装和使用通用的工具栏组件
猜你喜欢

郭晶晶家的象棋私教,好家伙是个机器人

Spotify使用C4模型表达其架构设计

FPGA时钟篇(二) 7系列clock region详解

ARM Architecture 3: Addressing and Exception Handling of ARM Instructions

DataStream API(基础篇) 完整使用 (第五章)

The sixteenth day & the basic operation of charles

浅谈DAO+DeFi+NFT模式开发代码技术方案丨链游元宇宙NFT盲盒项目技术开发逻辑(源码程序)

明明加了唯一索引,为什么还是产生重复数据?

How AliExpress sellers seize product search weight

ARM体系结构2:处理器内核和汇编指令集
随机推荐
J9数字论:Web3.0+互联网电商会引起怎样的火花?
【微服务架构】为故障设计微服务架构
钻石价格预测的ML全流程!从模型构建调优道部署应用!
【业务架构】价值链分析:提高客户价值和盈利能力
ARM Architecture 3: Addressing and Exception Handling of ARM Instructions
Guys, may I ask, the oraclecdc error report is not serialized, but I see that the source code does not inherit serialization, what is the reason?
Compilation failure:找不到符号
Rust learning: 6.5_Array of composite types
UGUI—事件,iTween插件
问下cdc mysql to doris.不显示具体行数,怎么办?
数据库注入提权总结(一)
【元宇宙欧米说】听兔迷兔如何从虚拟到现实创造潮玩新时代
The implementation of the seemingly useless component (text gradient) in NaiveUI is so simple
ARM结构体系3:ARM指令的寻址和异常中断处理
JWT:拥有我,即拥有权力
Unity—UGUI控件
推荐几个高质量的软件测试实战项目
PTA Exercise 2.1 Simple Calculator
【微信小程序】一文读懂页面导航
Spotify使用C4模型表达其架构设计