Last active
November 15, 2017 07:47
-
-
Save tiancheng91/789a3382027b21268dd6ff3874f9f3e5 to your computer and use it in GitHub Desktop.
bash
This file contains 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 characters
for i in {16..31..1}; do ping -c 1 -w 0.3 104.$i.1.1 | grep ttl; done | |
for i in {1..255..1}; do ping -c 1 -w 50 104.16.$i.1 | grep ttl; done // -w ms | |
for i in {1..255..1}; do ping -c 1 -w 0.3 104.17.$i.1 | grep ttl; done | |
for i in {1..255..1}; do ping -c 1 -w 0.3 104.18.$i.1 | grep ttl; done | |
for i in {1..255..1}; do ping -c 1 -w 0.3 104.19.$i.1 | grep ttl; done | |
for i in {1..255..1}; do ping -c 1 -w 0.3 104.20.$i.1 | grep ttl; done | |
for i in {64..72..1}; do ping -c 1 -w 0.3 172.$i.1.1 | grep ttl; done | |
for i in {1..255..1}; do ping -c 1 -w 0.3 172.64.$i.1 | grep ttl; done | |
for i in {1..255..1}; do ping -c 1 -w 0.3 172.65.$i.1 | grep ttl; done | |
#date_time="`date +%Y-%m-%d -d "1 day ago"`"; | |
date_time="2017-11-05" | |
declare -a arr=("a.tar.bz2" "b.tar.bz2") | |
cd $(dirname $0) | |
for i in "${arr[@]}" | |
do | |
wget http://$i.$date_time.tar.bz2 | |
done | |
cat *.tar.bz2 | tar -iOxjv > tks.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment