I was trying to send a string containing the character > to a program through
pipe. And I think it is not more's fault, as the same problem occurs with all
other programs, not just "more".
I used "more" just as an example, it's not the program I want to use.
"Pegasus" wrote:
>
> "fab" <(E-Mail Removed)> wrote in message
> news:88238844-87BC-4CB1-B6E4-(E-Mail Removed)...
> >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?
>
> The command
> echo ^< | more
> will pipe the string "<" to more.com. I suspect that more.com
> is unable to deal with it. The "echo" command works just fine.
>
> Your command is rather strange. What exactly are you trying
> to achieve?
>
>
>
|