摘要:
#!/bin/sh #deion: get server hardware info #author: liuxin #date: 20180122 #需要安装jq工具 yum install jq #用于存放该服务器的所有信息,个人喜欢把全局变量写到外面 #写到函数里面,没有加local的变量也是 阅读全文
摘要:
1.比较 shell脚本中大于,大于等于,小于,小于等于、不等于的表示方法 应对方法: 大于 -gt (greater than)小于 -lt (less than)大于或等于 -ge (greater than or equal)小于或等于 -le (less than or equal)不相等 阅读全文