您的位置 首页 shell脚本

shell while true break 循环语句 详解

shell while true break 循环语句  是非常重要的, 这篇文章,就带大家认识一下:shell while true循环

1)shell while true循环

[root@baimeidashu ~]#cat while.sh 
#!/bin/bash
while true
do
echo 1111
sleep 3
done

2) while 读取文件 按照行读取文件内容

#!/bin/bash
while  read line
do
echo $line
done<baimeidashu.txt

运行结果:


 

 

 

shell while read line
shell while read
shell while true
shellwhile循环
shell while 无限循环
shell while break
shell while true循环
shell while do done
shell while 无限循环如何结束
shell while do

 

 

shell编程while循环求和
shell编程while循环实现前100的和
shell编程while循环
shell的while循环
shell中while循环语句
shell while循环执行命令
shell循环while do 执行完
shell脚本while循环实例
shell用while循环求1到100的和
shell while1德萨
欢迎来撩 : shell 编程从0到1

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章