root@Capsheaf_1:~ # cat test.sh
#!/bin/bash
for num in {1..10}
do
echo $num
done
echo -e "\n"
for num in 1 2 3 4 5
do
echo $num
done
echo -e "\n"
for shell_file_name in `ls /usr/local/bin/*.sh`
do
name=`echo "$shell_file_name" | awk -F . '{print $1}'`
name=${name##*/}
echo $name
done
echo -e "\n"
for num in `seq 20`
do
if ((num%5==0))
then
echo $num
fi
done
echo -e "\n"
num=1
max=20
while [ $num -le $max ]
do
if ((num%5==0))
then
echo $num
fi
num=$(($num+1))
done
root@Capsheaf_1:~ # ./test.sh
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
auto-cryptsetup
auto_linkage
backup-compatibility
backup-create
backup-restore
check-kernel
chown
factory-default
get_ipv6_addr
getconns
getipaddress
gpgwrap
highperformance
ipscan
linkage_firewall
linkage_firewall_checkdaemon
logdiskmail
logrotate_rm
logtime_recover
mail_risk
network
openvpnuploadchachong
purge-spool
restartflowMonit
risk_tar
rpmlist
rrdfix
rules_apply
rules_resave
rules_update
sethomenet
shapingifb
syntoremote
usb_auto_install_utm
5
10
15
20
5
10
15
20
root@Capsheaf_1:~ #
阅读(986) | 评论(0) | 转发(0) |