G
Guest
I am trying to echo a message and pipe it to another program. The problem is
that the message contains spechal characters.
The caret ^ can be used as escape for special characters. So, if I type
H:\>echo ^<
I get the correct output
<
The same happens if I redirect output to a file
H:\>echo ^< > test.txt
test.txt contains the right message.
But redirection to pipe seems to be broken.
H:\>echo ^< | more
The syntax of the command is incorrect.
What's the problem? Is there a solution or workaround?
that the message contains spechal characters.
The caret ^ can be used as escape for special characters. So, if I type
H:\>echo ^<
I get the correct output
<
The same happens if I redirect output to a file
H:\>echo ^< > test.txt
test.txt contains the right message.
But redirection to pipe seems to be broken.
H:\>echo ^< | more
The syntax of the command is incorrect.
What's the problem? Is there a solution or workaround?