shell基礎 for对数字的操作
1、for in 100 1 254 do done2、for ip in $(seq 1 254) do ping -c 1 "192.168.10.$ip" >> p.txt done
3、for ip in {1..254}
do ping -c 1 "192.168.10.$ip" >> p.txt done less p.txt |grep ttl |wc -l顶(0)
踩(0)
上一篇:Linux 编译到内核
下一篇:Linux 内存映射机制
- 最新评论