view scripts/as_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 AS# is taken it will return the desired AS#
# else it will not return the desired AS#
echo -e "Enter path to resdb:\c"
read resdb
cd $resdb
echo -e "Enter desired AS#:\c"
read asn
ls db/as/ | grep "^$asn\$"