Fork me on GitHub
摘要: 需求 希望写一个脚本用来管理多个ssh ip 功能 xx.sh 1 ssh ip1 xx.sh 2 ssh ip2 实现 问题1: if判断格式 问题2: 获取参数$0 $9 0代表命令本身,所以需要从1开始 阅读全文
posted @ 2020-01-16 17:17 MgicalFool 阅读(93) 评论(0) 推荐(0) 编辑
摘要: ```if [ command ];then 符合该条件执行的语句elif [ command ];then 符合该条件执行的语句else 符合该条件执行的语句fi``` 阅读全文
posted @ 2020-01-16 16:46 MgicalFool 阅读(115) 评论(0) 推荐(0) 编辑