2013年2月17日

摘要: 1. echoi=3;j=5;let sum=i+j;echo "sum = $sum";echo can set the text attributes and color:echo -e "\e[1;31m This is the red text \e[0m; usage:echo -e "\e[attribute_code;text_color_code;background_color_codem text_content \e[0m" attribute_code: 00-none 01-bold 04-underscore 05- 阅读全文
posted @ 2013-02-17 13:34 name2579 阅读(347) 评论(0) 推荐(0) 编辑
摘要: The caculation of Integer: 1. leti=3;j=5;let sum=i+j;let sum++;echo $sum; 2. $(())sum=$((i+j)); 3. $[]sum=$[i+j]; 4. exprsum1=`expr i+j`sum2=$(expr $i+10)The caculation of Float: 1. bc result=`echo "scale=2; 2/3" | bc`;echo $result; 阅读全文
posted @ 2013-02-17 11:22 name2579 阅读(570) 评论(0) 推荐(0) 编辑

导航