shell浮点数比较
rewards=2.5 old_rewards=2.6 if [ `echo “$rewards =… 继续阅读 shell浮点数比较
rewards=2.5 old_rewards=2.6 if [ `echo “$rewards =… 继续阅读 shell浮点数比较
检查语法错误: bash -n test.sh 调试运行: bash -x test.sh
string=’a bc d e’ echo ${#string}
#!/bin/bash a=(a b c) b=(1 2 3) #single for char i… 继续阅读 shell数组遍历
/opt/shells/test.sh #!/bin/bash LOCAL_DIR=/nas/bak… 继续阅读 shell ssh 同步文件
a=12 $((a-1))
#!/bin/bash #Dependences: bind-dig, curl, openssl-… 继续阅读 aliyun shell ddns
[root@node01 ~]# awk ‘BEGIN{printf “%.2f%\n”,12345… 继续阅读 awk shell计算浮点数除法
#!/bin/bash #通讯录可获取,多个人员之间使用空格分隔 user="123456… 继续阅读 shell发送企业微信消息
github.com/fatih/color 是用于输出对应编码颜色的包。 github.com/s… 继续阅读 Go 编写 shell 脚本软件包
package main import ( “fmt” “os/exec” ) func main(… 继续阅读 go调用shell脚本
adb shell pm uninstall –user 0 com.miui.systemAdS… 继续阅读 MIUI关闭广告
#scale用来控制小数点后面保留的位数 usdt_general_amount=`echo “sc… 继续阅读 shell除法控制精度
echo $[2**32]
echo “set testkey 5000” | redis-cli -h 192.168.2.1… 继续阅读 shell写redis
PHONE是变量 curl ‘http:/127.0.0.1:5555/user/register’… 继续阅读 curl post使用shell变量
while: #!/bin/bash while: [ 1 ] do sleep 1 echo 12… 继续阅读 shell死循环
vim-cmd vmsvc/unregister 7 #数字是失效虚拟机的编号
jdk_init(){ now_time_num=`date ‘+%Y%m%d%H%M%S’` ja… 继续阅读 linux安装jdk shell