if [ "$A" =="$B" ] then
echo "ok"
fi
置換單字
echo "ABC" |tr "A" "R"
變數加總
times=0
until [ "$times" = 3 ];
do
echo "I love linux."
sleep 2
times=`expr $times + 1`
done
REF:http://b123.hlc.edu.tw/shellscript.htm
times=0
until [ "$times" = 3 ];
do
echo "I love linux."
sleep 2
times=`expr $times + 1`
done
沒有留言:
張貼留言