I have a list of IP addresses in the following form:
010.125.015.013
010.125.153.012
010.125.012.135
I'm unable to execute ping with that form as windows thinks it's dotted octal form. I need to remove leading 0's after each dot.
It's not that simple as some of them have no leading 0's after dots at all and some of them have it only on last octet where some have it on third octet or both.
Unless there's a solution to force ping to interpret is as a dotted decimal IP address.
Can anyone help?
Thanks
123.234.000.276
? (Yes, bogus example.)^0
(match a zero at the beginning of the string!)