Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1678

Piping a command containing an odd number of double_quotes?

$
0
0
I want to do command1 | command2. It fails when command1 contains an odd number of double_quotes because the pipe character is seen as being quoted. Here's an overly simple example.

Code:
v:\> echo "" | findstr /r .
""

v:\> echo """ | findstr /r .
""" | findstr /r .

In real life, I want to pipe the output of echo %@function[], so I have no control over what's echoed, and I can't setdos /x-7 because that will turn off the special meaning of [ and ].

How do I work...

Read more

Viewing all articles
Browse latest Browse all 1678

Trending Articles