summaryrefslogtreecommitdiff
path: root/scripts/subnet_script
diff options
context:
space:
mode:
authorNick <nick@somerandomnick.ano>2012-06-04 13:27:43 +0000
committerNick <nick@somerandomnick.ano>2012-06-04 13:27:43 +0000
commitc9e501b0a1663a1d8db724c568d0c2b6e9b7cde0 (patch)
tree89bf082238ed1a6cd5f3325e8819147600b47612 /scripts/subnet_script
parent716a1bd9439036f84c62fa5ced33645682ff73b8 (diff)
parente336140e1beae2d0cefc9a0281f182224669a9c4 (diff)
downloadresdb-c9e501b0a1663a1d8db724c568d0c2b6e9b7cde0.tar.gz
resdb-c9e501b0a1663a1d8db724c568d0c2b6e9b7cde0.zip
Merge commit 'e336140e1beae2d0cefc9a0281f182224669a9c4'
Diffstat (limited to 'scripts/subnet_script')
-rw-r--r--scripts/subnet_script11
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\$"
+