View difference between Paste ID: Yx0RJt2h and 52upgn83
SHOW: | | - or go back to the newest paste.
1
$ more grepHref.sh
2
grep "href" index.html | cut -d '/' -f3 | sort -u > ips.txt
3
4
$ more hostname.sh
5
#!/bin/bash
6
##to check bundles of ip in ips.txt
7
for hostname in $(cat ips.txt); do
8
host $hostname | egrep "has address|is an alias"
9
done