摘要: 使用脚本统计字符串出现次数 #!/bin/bash # 获取要监控的本地服务器IP地址 IP=`ifconfig | grep inet | grep -vE 'inet6|127.0.0.1' | awk '{print $2}'` echo "IP地址:"$IP # 获取cpu总核数 cpu_n 阅读全文
posted @ 2024-02-22 19:40 陈晓猛 阅读(512) 评论(0) 推荐(0)