948
|
1 #!/bin/sh |
|
2 # READ ME: |
|
3 # If subnet is taken it will return the desired AS# |
|
4 # else it will not return the desired subnet |
|
5 echo -e "Enter path to resdb:\c" |
|
6 read resdb |
|
7 cd $resdb |
|
8 echo -e "Enter desired subnet:\c" |
|
9 read subnet |
|
10 cat db/ip/01/*/*/cidr | grep "^$subnet\$" |
|
11 |