- May
- 12,663
- 157
/simple = 46
Joe
Have you got an example of its use? I just get an empty window which disappears promptly.
By registering with us, you'll be able to discuss, share and exchange private messages with other members of our community.
SignUp Now!/simple = 46
Joe
'[' and ']' have not been used in a regexp in this thread.Square brace is a special tag in regexps. You have to escape it.
'[' and ']' have not been used in a regexp in this thread.
This too.
Code:vefatica@jj:~$ echo foo | sed -e 's/.*/prefix \0 postfix/g' prefix foo postfix vefatica@jj:~$ echo foo | sed -e 's/.*/[[ \0 ]]/g' [[ foo ]]
But it gets all fouled up when I try to use it from windows. Below, the second is expected; the first seems wacky.
Code:v:\> echo foo | (wsl sed -e 's/.*/[[ \0 ]]/g') ]]foo v:\> echo foo | (wsl sed -e 's/.*/[[ \\0 ]]/g') [[ \0 ]]