Hi,
I want to have a string with escaped shell variable passed as an option to some executable in the pipeline, consider the
following example:
binary --pattern "\$1 == \"On network\" || \$NF == \"On network\" || \$0 ~ /.On network./"
However, I cannot find a way to escape $
and preserve a backslash before it. Both \$$
and \\$
in the pipeline configuration doesn’t seem to work. Is there a way to do such a thing?