N
Nene
I just used regular expressions to parse out an IP and port. Now how
do I create a hash from the list.
Here is the regex I used:
perl -ne 'print "$1 $2\n" if /http:\/\/(\S+)\d+)\/' {} \; | sort |
uniq
The output of that command is:
10.10.24.131 7002
10.10.24.142 7504
10.10.24.144 7506
10.10.24.150 7512
10.10.24.151 7413
10.10.24.151 7513
10.10.24.151 7613
do I create a hash from the list.
Here is the regex I used:
perl -ne 'print "$1 $2\n" if /http:\/\/(\S+)\d+)\/' {} \; | sort |
uniq
The output of that command is:
10.10.24.131 7002
10.10.24.142 7504
10.10.24.144 7506
10.10.24.150 7512
10.10.24.151 7413
10.10.24.151 7513
10.10.24.151 7613