问轩博客

展开菜单

while计算小练习

while计算小练习
[root@shnne ~]# cat sum_* #!/bin/sh sum=0 i=1 while [ $i -le 100 ] do   let sum=sum+i   let i=i+1 done echo $sum #!/bin/sh sum=0 i=1 while ((i&...

shell编写rsync启动脚本

shell编写rsync启动脚本
[root@shnne ~]# cat rsync_start.sh  #!/bin/bash # chkconfig: 2345 58 80 # description: start and stop service for rsync . /etc/init.d/functions RSYNCBIN=&q...