(?<![0-9])0+(?=[0-9]+)
I need to remove unnecessary leading zeros in malformed octettes of IP addresses.
I want to do something like this but it is not working.
cat Qualys-Active-IPs.csv | awk -F';' {'print $1'} | sed 's/(?<![0-9])0+(?\=[0-9]+)//g'