#!/bin/bash # sh script name {1..254} until [ -z "$1" ] # 直到所有参数都用光 do ping -c 2 192.168.5.$1 shift done
转载于:https://blog.51cto.com/kkkkkk/1334845
#!/bin/bash # sh script name {1..254} until [ -z "$1" ] # 直到所有参数都用光 do ping -c 2 192.168.5.$1 shift done
转载于:https://blog.51cto.com/kkkkkk/1334845