Article 54BYJ sed command unterminated 's' command

sed command unterminated 's' command

by
igagankalra
from LinuxQuestions.org on (#54BYJ)
I'm trying to replace a connection String in a yml file.

The command which gets populated with variables is
Code:sed -i 's^\<constring\>\s*:.*^contring : \['1\|\|sS3kEuT24A1rE3hT5U_fWcYJa4y7KxmgJYYg5Ms8eBxRqMvphym7sz4M-Wmdt5AMbsrELTxW7Ng1U4mDRms0_JQ3LIqppYm8qb1k57_MeOv7LPU20v7pYyNPakDBf0mL1JixPIGk7oUGAZwfQCnSrqzhSDGz-7jek6wPWXMVq13_6pbUJSoo1J-mD5NwfKvqBHRZeJzaIuCenqv7KuWST9VrgIc6ZKAm3CLKC5Gb2gT5lnnqlGG373reml6KaIev7j0UbFecbKfWBY7A==, logs', '1\|\|hlt81VYLBRFCQnhCi1dGxci3-GCnBoe2Ke_qZ7LX7BIZEBYWNzWcuO9FhaW3XqpC_NskrD4RGe3ApyRBu4Rm-cIqqolP9aMt9h56W-TtMxWDXpja6h-aAzYmed51aAVP_jMRd_zarI0jbHfzlENWfpTJlSzDaxV4NJJNgCgCW2cDKoH4vqC8CwxxHpL_LKo8HkS13ZoyDpVsuAUYlwiBj5xmsPlXPwfQBTqoZxVFCGq18vWB7zpXaZ6W09wSS=, log1'\]^gi' file.ymlI have tried it without escaping pipe(|) and even Square brackets([)
But nothing works.

Error after running this command -- sed: -e expression #1, char 327: unterminated `s' command


Please helplatest?d=yIl2AUoC8zA latest?i=9XbsHC5vgCI:cLbjmdelPS0:F7zBnMy latest?i=9XbsHC5vgCI:cLbjmdelPS0:V_sGLiP latest?d=qj6IDK7rITs latest?i=9XbsHC5vgCI:cLbjmdelPS0:gIN9vFw9XbsHC5vgCI
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