229, shell 第七部分 (day229)
作者:互联网
循环:
1, while语句:
while 条件句
do
指令
done
[root@node1 ~]# cat a.sh
#! /bin/bash
for n in 1 2
do
echo -e "\033[31m $n \033[0m"
done
[root@node1 ~]# sh -x a.sh
+ for n in 1 2
+ echo -e '\033[31m 1 \033[0m'
1
+ for n in 1 2
+ echo -e '\033[31m 2 \033[0m'
2
[root@node1 ~]#
标签:day229,shell,229,echo,sh,31m,node1,033,root 来源: https://www.cnblogs.com/liuqiqi123/p/10013084.html