Question : how to take two ip addresses and perform arithemetic bash
Answered by : defiant-dingo-2mcvuca66dw6
# This will take a CIDR block and calculate the number of addresses within that range.
nmap -sL -n 10.10.64.0/27 | awk '/Nmap scan report/{print $NF}'
Source : https://stackoverflow.com/questions/16986879/bash-script-to-list-all-ips-in-prefix/44001530 | Last Update : Thu, 26 Nov 20