Linux下shell通用脚本启动jar(微服务) vim app_jar.sh #!/bin/bash #source /etc/profile # Auth:Liucx # Please change these parameters according to your real env. # set Java Home: Remember that dolphin only supports JDK8! JAVA_HOME=/usr/java/jdk1..0_162 # applicati
例1: #!/bin/bashsum=0;for i in {1..100..2}do let "sum+=i"doneecho "the sum is $sum" 例2:不知道循环次数,批量解压缩 #!/bin/bashcd /rootls *.sh > ls.logy=1for i in $(cat ls.log) do echo $y y=$(( $y + 1 ))done 例3:知道解压缩 #!/bin/bashs=0for(( i=1;i