Created
August 8, 2013 08:28
-
-
Save johanmeiring/6182729 to your computer and use it in GitHub Desktop.
Revisions
-
johanmeiring created this gist
Aug 8, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ #!/bin/bash COUNTER=1 rm ips while [[ $COUNTER -lt 255 ]]; do ping 192.168.254.$COUNTER -c 1 -W 1 && echo "192.168.254.$COUNTER" >> ips COUNTER=$(( $COUNTER + 1 )) done