- 博客(2)
- 收藏
- 关注
原创 mac shell 初学 变量输入输出
#! /bin/bash## This my first test shell## Writen by Normanyang 2015-12-29touch 1.shecho 'hello world'dateecho '一天前日期是'`date -v -1d "+%Y:%m:%d"`date -v +1d "+%Y%m%d"date -v +1m "+%Y%m%d
2015-12-29 16:05:40 4403
原创 linux shell 初学 变量 循环 分支
#! /bin/bashread -p "please input a number:" xread -p "please input another number:" ysum=$[$x+$y]echo $sumif(($sum echo "The sum you input less than 10"elif(($sum>20));then
2015-12-29 15:28:17 306
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人