Article 52QCW [SOLVED] [bash][sed] replace string after fixed string/character?

[SOLVED] [bash][sed] replace string after fixed string/character?

by
czezz
from LinuxQuestions.org on (#52QCW)
Code:file1:
{
"Name": "__NAME__",
"name": "XYZ-string",
"description": "whatever desc",
}Im trying ot replace "XYZ-string" to "abcd" with this: sed 's/"name": [^"]*"/"name": "abcd"/' file1
However, as a return I get:
Code:{
"Name": "__NAME__",
"name": "abcd"XYZ-string",
"description": "whatever desc",
}How to fully replace whatever stands after "name": ?latest?d=yIl2AUoC8zA latest?i=CWo7860To0k:jSMaw9T6i4M:F7zBnMy latest?i=CWo7860To0k:jSMaw9T6i4M:V_sGLiP latest?d=qj6IDK7rITs latest?i=CWo7860To0k:jSMaw9T6i4M:gIN9vFwCWo7860To0k
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