view 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
line wrap: on
line source

#!/bin/sh
# READ ME:
# If subnet is taken it will return the desired AS#
# else it will not return the desired subnet
echo -e "Enter path to resdb:\c"
read resdb
cd $resdb
echo -e "Enter desired subnet:\c"
read subnet
cat db/ip/01/*/*/cidr | grep "^$subnet\$"