view contrib/sevilNatas/subnet_script @ 1233:1b7ce27f434c
draft
added as 1234 and cidr 21.44.44.0/24
Committer: ano <ano@x>
author
ano <root@x>
date
Sun, 02 Dec 2018 23:01:26 +0000 (2018-12-02)
parents
4ec8a1c7f73c
children
line source
+ − #!/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 \$"
+ −