Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Insert text at start/end of line

I only noticed that the TPIPE debugger is /simple=46 from the help file, but I never tried it.

Trying it here, I get the same results as you.

Looking at the TextPipe help page, I think it is supposed to look something like this;

Special Filters > Debug filter

Joe
 
'[' 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 ]]
 
In

Code:
echo foo | sed -e 's/.*/[[ \0 ]]/g'

Code:
[[ \0 ]]

is not a regular expression. It is a replacement string (containing a reference to another string). '[' and ']' are not special there.
 
Back
Top