comparison scripts/subnet_script @ 946:4242340b6e54 draft

scripts: Added scripts to search for desired ASNs and subnets
author sevil <sevil@sevilnatas.ano>
date Sun, 04 Mar 2012 10:07:21 +0000
parents
children
comparison
equal deleted inserted replaced
922:15fdec941b3c 946:4242340b6e54
1 #!/bin/sh
2 # READ ME:
3 # If subnet is taken it will return the desired AS#
4 # else it will not return the desired subnet
5 echo -e "Enter path to resdb:\c"
6 read resdb
7 cd $resdb
8 echo -e "Enter desired subnet:\c"
9 read subnet
10 cat db/ip/01/*/*/cidr | grep "^$subnet\$"
11