jeudi 23 avril 2015

Bourne shell - convert IP range into set of subnets

I'm looking for a function in Bourne shell to convert a given range of IPs in the format "sIP-dIP" into a usable set of subnets that defines the very same range. What I'm looking for precisely it's the very same result of the IP Range function provided at this site:




I have seen many examples around but they are all for bash, C or phyton, but I'm on busybox with Bourne shell.

Can anybody please provide some inputs?

Many thanks!

Aucun commentaire:

Enregistrer un commentaire