shell脚本语言

Shell脚本语言

  1. shell脚本规范以sh结尾。

bash 1.sh        #运行

./.sh                  #运行

date          #输出时间

Cal            #输出日历

Cal -y        #输出一年的日历

计算机:需要安装 yum install bc

bc

1*2

2*8

365/7

1+2+3

 

posted @ 2018-09-26 15:35  贾雪莲  阅读(162)  评论(0编辑  收藏  举报