Hello all,
I cannot figure this out for the life of me. I have tried a couple of different methods to do this with awk's printf function but couldn't get it.
basically I have a 12 digit number that I want to place a decimal every 4 characters in the string.
i.e.
string1=abcd12345678
i would want it to be:
string1=abcd.1234.5678
also would like to know how to do the reverse.
thanks.
I cannot figure this out for the life of me. I have tried a couple of different methods to do this with awk's printf function but couldn't get it.
basically I have a 12 digit number that I want to place a decimal every 4 characters in the string.
i.e.
string1=abcd12345678
i would want it to be:
string1=abcd.1234.5678
also would like to know how to do the reverse.
thanks.