摘要: 以下是一个使用 ifconfig 获取网卡名及对应 IP 的简单 Shell 脚本: #!/bin/bash echo "网卡名和对应 IP:" > output.txt # 使用 ifconfig 命令获取网卡信息,并使用 awk 进行处理 ifconfig | awk '/^[a-zA-Z0-9 阅读全文
posted @ 2024-03-04 20:29 Lz_蚂蚱 阅读(120) 评论(0) 推荐(0) 编辑