Hi to all,
I'm new to sed and would like to know what would be the correct syntax on how to divide the a decimal number by 10 (2nd and 4th column) then the result would be on another file.
Sample Data:
John, 123 ,xxx, 100
David, 223, yyy, 145
Smith, 178, ccc , 240
Result would be:
John, 12.3 ,xxx, 10.0
David, 22.3, yyy, 14.5
Smith, 17.8, ccc , 24.0
Any help would be gladly apreciated....
Thank you
I'm new to sed and would like to know what would be the correct syntax on how to divide the a decimal number by 10 (2nd and 4th column) then the result would be on another file.
Sample Data:
John, 123 ,xxx, 100
David, 223, yyy, 145
Smith, 178, ccc , 240
Result would be:
John, 12.3 ,xxx, 10.0
David, 22.3, yyy, 14.5
Smith, 17.8, ccc , 24.0
Any help would be gladly apreciated....
Thank you