My version of echo will do that.
I forgot to document it on the webpage but use the N switch to prevent a
CRLF at the end of a line, like this:
C:\Users\sadowski [(firecat) 12:10, Mon 03/29/2004] \bin\echo.exe -n "Hey "
& \bin\echo.exe you
Hey you
Echo.exe
Echo echoes characters from the command line to the standard output. Unlike
the built-in version of echo this version allows you to specify printf
escape sequences (such as \n for a newline) and octal representations of
characters.
\b BACKSPACE
\c Print line without NEWLINE
\f FORMFEED
\n NEWLINE
\r RETURN
\t TAB
\v vertical TAB
\\ backslash
\x the 8-bit character whose ASCII code is the 1-, 2-, 3- or 4-digit octal
number x. The first digit must be zero.
Example usage:
C:\echo.exe %TIME%\n%DATE%
16:25:13.03
Fri 02/06/2004
http://www.paulsadowski.com/WSH/cmdprogs.htm
destatnj2 said:
Hi All,
Is there a way to suppress the carriage return that is inserted after an
echoed statement?
For instance, something like:
echo Hey
echo you
that would output:
Thanks,
Pete