当前位置:网站首页>Shell programming loop statement
Shell programming loop statement
2022-08-03 19:11:00 【white for superman】
for loop statement
When using the for loop statement, you need to specify a variable and a list of possible values, and repeat the same command sequence for each different value until the variable value is used up and the loop is exited.
The syntax structure of the for loop statement is as follows:
for variable name in list of values
do
command sequence
done
Find the odd sum between "1~any number"
Find the integer sum between "1~any number"
Find the sum of even numbers between "1~any number"
List odd and even numbers
To be continued
边栏推荐
猜你喜欢
随机推荐
不要小看 WebSocket!长连接、有状态、双向、全双工都是王炸技能
丙二醇二乙酸酯(Propylene Glycol Diacetate)
ROS仿真环境搭建
深度学习常用公式与命令总结(更新中)
Unity获取canvas 下ui 在屏幕中的实际坐标
Solution for no navigation bar after Word is saved as PDF
云图说丨初识华为云微服务引擎CSE
InnoDB 中不同SQL语句设置的锁
unity3d-游戏物体控制方法
Postgresql source code (65) analysis of the working principle of the new snapshot system Globalvis
图像超分——Real-ESRGAN快速上手
Execute the mysql script file in the docker mysql container and solve the garbled characters
Postgresql源码(64)查询执行——子模块Executor(2)执行前的数据结构和执行过程
懵逼!阿里一面被虐了,幸获内推华为技术四面,成功拿到offer,年薪40w
开发即时通讯到底需要什么样的技术,需要多久的时间
Postgresql源码(65)新快照体系Globalvis工作原理分析
MYSQL误删数据恢复
X86 function call model analysis
阿里巴巴政委体系-第五章、阿里政委体系建设
力扣解法汇总899-有序队列