diff options
author | sevil <sevil@sevilnatas.ano> | 2012-03-04 10:07:21 +0000 |
---|---|---|
committer | sevil <sevil@sevilnatas.ano> | 2012-03-04 10:07:21 +0000 |
commit | e336140e1beae2d0cefc9a0281f182224669a9c4 (patch) | |
tree | 5272a27f6ce4e894e934046a6274e3a7a5e0cd06 /scripts/subnet_script | |
parent | 37d46f3b21193d03d78eec40b162b3ca26c8cbe5 (diff) | |
download | resdb-e336140e1beae2d0cefc9a0281f182224669a9c4.tar.gz resdb-e336140e1beae2d0cefc9a0281f182224669a9c4.zip |
scripts: Added scripts to search for desired ASNs and subnets
Diffstat (limited to 'scripts/subnet_script')
-rw-r--r-- | scripts/subnet_script | 11 |
1 files changed, 11 insertions, 0 deletions
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\$" + |