9

Replace characters in a text file at a certain position

view full story
linux-howto

http://www.linuxquestions.org – Hey guys! i have a text file and want to write a textstring at, let's say, line 5 at position 4, and REPLACE the old text at that position with the new text- so if line 5 looked like this: ABCDEFGHIJKLMNOPQRSTUVWXYZ Text to insert: hello pos 4: ABCD>EFGHIJKLMNOPQRSTUVWXYZ new line 5: ABCDhelloJKLMNOPQRSTUVWXYZ Can somebody tell me how to do this in bash, please? Thank you! (HowTos)