4 Apr
2007
4 Apr
'07
10:56 p.m.
On Wednesday 04 April 2007, Chuck Noyes wrote:
I want to ping lots and lots of consecutive ip addresses. If I issue ping 192.168.1.{1,2,3}, I get ping 192.168.1.1 192.168.1.2 192.168.1.3 which isn't exactly what I want.
How can I issue a "short-hand" ping command, that will expand to ping 192.168.1.1 ping 192.168.1.2 ping 192.168.1.3 etc.
eval $(echo 'ping 192.168.1.'{1..10}';') -mike