I have a Unix scripting question,I have a file such as below:
1234ABCDE KLDS
2334KLVDE ABdd
9832BDKLE TMDA
I would like to insert the string "HERE" in position 5 in every line in the file and the rest of the characters in each line move over
resulting in the following:
1234HEREABCDE KLDS
2334HEREKLVDE ABdd
9832HEREBDKLE TMDA
......
Note: Each line could move 2 or more successive blanks somewhere on the line which I would like to maintain.
any ideas on what command to use?
1234ABCDE KLDS
2334KLVDE ABdd
9832BDKLE TMDA
I would like to insert the string "HERE" in position 5 in every line in the file and the rest of the characters in each line move over
resulting in the following:
1234HEREABCDE KLDS
2334HEREKLVDE ABdd
9832HEREBDKLE TMDA
......
Note: Each line could move 2 or more successive blanks somewhere on the line which I would like to maintain.
any ideas on what command to use?