annotate 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
parents 4ec8a1c7f73c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
948
4ec8a1c7f73c the contrib scripts they should be in contrib/
Nick <nick@somerandomnick.ano>
parents:
diff changeset
1 #!/bin/sh
4ec8a1c7f73c the contrib scripts they should be in contrib/
Nick <nick@somerandomnick.ano>
parents:
diff changeset
2 # READ ME:
4ec8a1c7f73c the contrib scripts they should be in contrib/
Nick <nick@somerandomnick.ano>
parents:
diff changeset
3 # If subnet is taken it will return the desired AS#
4ec8a1c7f73c the contrib scripts they should be in contrib/
Nick <nick@somerandomnick.ano>
parents:
diff changeset
4 # else it will not return the desired subnet
4ec8a1c7f73c the contrib scripts they should be in contrib/
Nick <nick@somerandomnick.ano>
parents:
diff changeset
5 echo -e "Enter path to resdb:\c"
4ec8a1c7f73c the contrib scripts they should be in contrib/
Nick <nick@somerandomnick.ano>
parents:
diff changeset
6 read resdb
4ec8a1c7f73c the contrib scripts they should be in contrib/
Nick <nick@somerandomnick.ano>
parents:
diff changeset
7 cd $resdb
4ec8a1c7f73c the contrib scripts they should be in contrib/
Nick <nick@somerandomnick.ano>
parents:
diff changeset
8 echo -e "Enter desired subnet:\c"
4ec8a1c7f73c the contrib scripts they should be in contrib/
Nick <nick@somerandomnick.ano>
parents:
diff changeset
9 read subnet
4ec8a1c7f73c the contrib scripts they should be in contrib/
Nick <nick@somerandomnick.ano>
parents:
diff changeset
10 cat db/ip/01/*/*/cidr | grep "^$subnet\$"
4ec8a1c7f73c the contrib scripts they should be in contrib/
Nick <nick@somerandomnick.ano>
parents:
diff changeset
11