![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
是阿翔啊
C++程序员一枚
展开
-
shell脚本运行ssh远程机器命令:curl发送前端请求更换token脚本
shell脚本运行ssh远程机器命令:curl发送前端请求更换token脚本shell脚本运行ssh远程机器命令#!/bin/bashssh -i 密钥位置 ubuntu@ip地址 "cd /home/***; ./test.sh"curl发送前端请求更换token脚本#!/bin/bash# 1.sh是请求页面脚本./1.sh > tmpjsonpath="./tmp"if [ ! -f $jsonpath ]; then echo "file not exist"原创 2022-01-19 17:52:13 · 907 阅读 · 0 评论 -
shell map的基本使用
shell map的基本使用#!/bin/shecho "一、定义Map:declare -A myMap=([\"myMap00\"]=\"00\" [\"myMap01\"]=\"01\")"declare -A myMap=(["my00"]="00" ["my01"]="01")myMap["my02"]="02"myMap["my03"]="03"echo "二、输出所有的key:"echo ${!myMap[@]}echo "三、输出所有value:"echo ${myM原创 2022-01-14 15:30:47 · 3572 阅读 · 0 评论