Article 57KVA [SOLVED] Sed to replace range of text at specific coordinates

[SOLVED] Sed to replace range of text at specific coordinates

by
Drosera_capensis
from LinuxQuestions.org on (#57KVA)
Hello everyone,

I wish to edit a document, replacing a range of characters with another range of text.
For example the following input has to be modified between character 3 and 7 with "1234".

Input:
Quote:
abcdefghijklmnopqrstuvwxyz
Output:
Quote:
ab1234hijklmnopqrstuvwxyz
I was thinking about using the command sed to do so, but it seems it only replace lines by ranges addresses, and not characters. https://www.gnu.org/software/sed/man...ange-Addresses

Would anyone know how to do the substitution?latest?d=yIl2AUoC8zA latest?i=ad0QzN8z7_E:qh7OOQxqU94:F7zBnMy latest?i=ad0QzN8z7_E:qh7OOQxqU94:V_sGLiP latest?d=qj6IDK7rITs latest?i=ad0QzN8z7_E:qh7OOQxqU94:gIN9vFwad0QzN8z7_E
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments