summaryrefslogtreecommitdiff
path: root/scripts/subnet_script
blob: 378bf04e9c442044d92379a1d8c041675295ca54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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\$"