1.

Solve : How to replace string at specific index in text file?

Answer»

Hi I`m newbie to Unix. I have a FILE which look LIKE this:-

'country code HKG'

How to replace STRING at index 14 to 16 with other VALUE? since you are on *nix
Code: [Select]awk '{$3="ABC"}1' file



Discussion

No Comment Found