I have a csv file that contains a column of CIDR IPs and a column that has the location of where that IP is being used, like this:
| CIDR | Location |
| ------------ | ---------- |
| x.x.x.x/24 | OFFICE |
| x.x.x.x/24 | DATACENTER |
| x.x.x.x/25 | DATACENTER |
| x.x.x.x/26 | DATACENTER |
And the csv continues on, I want to create a new csv file from this that would expand the CIDR to all its possible IPs, but still have the proper location tied to it.
| IPs | Location |
| -------- | ------- |
| y.y.y.y | OFFICE |
| y.y.y.y | OFFICE |
| y.y.y.y | OFFICE |
| y.y.y.y | OFFICE |
| y.y.y.y | OFFICE |
and so on