From e336140e1beae2d0cefc9a0281f182224669a9c4 Mon Sep 17 00:00:00 2001 From: sevil Date: Sun, 4 Mar 2012 10:07:21 +0000 Subject: scripts: Added scripts to search for desired ASNs and subnets --- scripts/subnet_script | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 scripts/subnet_script (limited to 'scripts/subnet_script') diff --git a/scripts/subnet_script b/scripts/subnet_script new file mode 100644 index 0000000..378bf04 --- /dev/null +++ b/scripts/subnet_script @@ -0,0 +1,11 @@ +#!/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\$" + -- cgit v1.2.3