Tag: substr

  • Substitute last 4 digits in second and third column

    Substitute last 4 digits in second and third column

    10 I have a file as following: 2300 10 1112221234 111222123420231121PPPPD10+0000000850 ESIM 10 3334446789 333444678920231121PPPPD11+0000000950 RSIM 23 I want the outcome to be as following: 2300 10 1112222345 111222234520231121PPPPD10+0000000850 ESIM 10 3334447890 333444789020231121PPPPD11+0000000950 RSIM 23 I tried with the following code and was able to replace the last 4 digits in the second column and…