This serves as another "tool for the job" example. The sort in *nux is as 
simple as:
sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4 ipaddress.file
How easy is that ?. Even OMVS has sort that should handle that.

For the real output required, I'd pipe the output of that to gawk and use an 
associative array indexed on the first three octets of the IP address. Looks 
like the OMVS awk is missing the GNU extension of match() to use an array for 
splitting the IP address, but that can be worked around.

REXX ? phooey.

Shane ...

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to