摘要:
1,命名变量num=2echo "this is {$num}nd"输出 this is 2nd2, 变量相加 默认是字符串相加var=1var=$var+1echo $var输出 1+13,如何数学相加:let "var+=1" var="$[$var+1]" ((var++))var=$(($... 阅读全文
posted @ 2014-07-18 21:01
UCanBeFree
阅读(119)
评论(0)
推荐(0)
摘要:
脚本执行:test:#!/bin/basha="Hello ,World!"echo "A is:" $a变为可执行sudo chmod +x test加入自动任务:自动任务配置文件: /etc/crontab# m h dom mon dow user command17 * * * * ... 阅读全文
posted @ 2014-07-18 20:18
UCanBeFree
阅读(212)
评论(0)
推荐(0)

浙公网安备 33010602011771号