[comp.sys.ibm.pc] echo <|>

ferrel@btni.UUCP (Roger Ferrel) (07/18/89)

I have a problem with DOS batch files that I'm sure others have run
across in the past.  In its simplest terms I want the echo command in a
batch file to return the string:

                <|>

The closest I've been able to come is the string:

                "<|>"

by doing:       echo "<|>"

Is there some escape character I've missed that would allow me to do:

                echo  \<\|\>

where the \ is the escape charcter that goes away when the string is
echoed?

In case it makes a difference I'm running MS-DOS 4.01.

Yes I know the string can be placed in a file and the batch command can
then type the file, but that is avoiding the problem I'm trying to find
a solution to.
-- 
Roger L. Ferrel (402) 498-6618
INTERNET:  ferrel%btni.uucp@uunet.uu.net
    UUCP:  ferrel@btni.uucp
    PATH:  !uunet!btni!ferrel

baird@cod.NOSC.MIL (John M. Baird) (07/18/89)

From article <801@btni.UUCP>, by ferrel@btni.UUCP (Roger Ferrel):
> 
>                                            I want the echo command in a
> batch file to return the string:
>                 <|>
> The closest I've been able to come is the string:
>                 "<|>"
Sorry, there is no escape character (in the UNIX sense). About the closest
you can come is
     echo "^H<|>"^Hspace
where ^H is a Ctrl-H (backspace), and space is the space character. Depending
on your display driver, the speed at which the ^H backs up over the preceeding
characater will probably be fast enough to be invisible to the viewer of the
message produced by the echo command.

John Baird Naval Ocean Systems Center, San Diego, CA