shell 练习
iii=
while [ $iii -lt ]
do
iii=$[$iii+]
echo -n "$iii "
done iii=
until ! [ $iii -lt ]
do
iii=$[$iii+] echo -n "$iii "
done echo while until num is done while true
do
echo 'plase input your operate !'
read BBB if [ "$BBB" = "out" ]
then break
fi
done echo while until is done for i in root mjorce jorcen normal
do
echo i is $i
done echo i si $i ; for f in /etc/profile.d/*.sh
do
echo f is $f
done for i in `seq `
do
echo -n "$i " && sleep
done PIDS="`pgrep httpd`"
[ -z "$PIDS" ] && echo 'httpd is not running !' && echo exi for i in $PIDS
do
kill - $i
done echo httpd is killed Myfun (){
echo patams1 is $
echo -n "now i is $i "
! [ "$i" ] && exit ;
echo jj
return '' } myf=$(Myfun);
echo myf
Myfun unset Myfun Myfun echo 'the end !'$myf