in reply to replace string from Command Line
Most likely guess (since you don't show sample data which you're expecting to match against . . .) it's because you have unquoted regex metacharacters (namely parens) which mean that the LHS of your s/// isn't able to match what you're trying to match. Unfortunately backquoting all of those from a shell prompt is going to get ugly.
Show the text you're trying to change (a before and after will help) and specify what OS you're using (shell quoting on *NIX will differ from CMD or PowerShell) and you might be able to get a more specific answer.
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: replace string from Command Line (updated)
by AnomalousMonk (Archbishop) on Oct 13, 2020 at 19:30 UTC | |
by pragovnj (Acolyte) on Oct 13, 2020 at 20:26 UTC | |
by AnomalousMonk (Archbishop) on Oct 13, 2020 at 21:30 UTC | |
by pragovnj (Acolyte) on Oct 13, 2020 at 19:48 UTC | |
by AnomalousMonk (Archbishop) on Oct 13, 2020 at 20:03 UTC |