home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!oracle!unrepliable!bounce
- Newsgroups: comp.os.msdos.misc
- From: skanga@us.oracle.com (Shiraz Kanga)
- Subject: Re: Echo command in batch files
- Message-ID: <1992Nov16.204439.17539@oracle.us.oracle.com>
- Sender: usenet@oracle.us.oracle.com (Oracle News Poster)
- Nntp-Posting-Host: wrpyr4.us.oracle.com
- Organization: Oracle Corporation, Redwood Shores CA 94065
- References: <1992Nov14.190918.9554@oracle.us.oracle.com>
- Date: Mon, 16 Nov 1992 20:44:39 GMT
- X-Disclaimer: This message was written by an unauthenticated user
- at Oracle Corporation. The opinions expressed are those
- of the user and not necessarily those of Oracle.
- Lines: 56
-
-
- In article <1992Nov14.190918.9554@oracle.us.oracle.com> skanga@us.oracle.com (Shiraz Kanga) writes:
- >Hi folks
- >
- >Does anyone know how to prevent echo from issuing a CR/LF at the end of a line.
- >
- >Eg : If I create the following file called test.bat
- >
- >echo hello > temp
- >echo world >> temp
- >
- >The result in temp is:
- >hello
- >world
- >
- >I need the result to be:
- >hello world
- >
- >And yes I know echo hello world will work but what I'm trying to do is
- >concatenate two strings which are output by two different programs and
- >get both onto one line.
- >
- >Please respond by mail and I'll summarize to the net if there's interest.
- >
- >thanks
- >
- >shiraz
- >skanga@oracle.com
- >--
- >Shiraz Kanga (skanga@oracle.com) Tel: (415)506-5412 Fax: (415)506-7822
- >Analyst -- Desktop Tools Group -- Worldwide Technical Support -- 3OP11
- >Oracle Corporation 500 Oracle Pkwy, MS 659311, Redwood Shores CA 94065
- >"I work for Oracle - I speak and type (over here at least) for myself"
-
- Well folks, as promised heres my summary (since there was little interest)
-
- Some people suggested using external echo commands (xecho, etc) which are
- available for anonymous ftp from various sites. This is not useful for me
- since I am not using echo only.
-
- Another person suggested trying an embedded backspace which might erase the
- CR/LF characters in the file. I did try this before posting and could not get
- it to work.
-
- The most useful suggestion was to concatenate the strings in the dos environment
- and then output the variable to a text file. I will try this (albeit clumsy)
- method as soon as I have the time.
-
- Thanks for the replies
-
- Shiraz
- --
- Shiraz Kanga (skanga@oracle.com) Tel: (415)506-5412 Fax: (415)506-7822
- Analyst -- Desktop Tools Group -- Worldwide Technical Support -- 3OP11
- Oracle Corporation 500 Oracle Pkwy, MS 659311, Redwood Shores CA 94065
- "I work for Oracle - I speak and type (over here at least) for myself"
-