delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/27/12:08:33

From: Hans-Bernhard Broeker <broeker AT acp3bf DOT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: «««« Help, End-Of-Line problem »»»
Date: 27 Jan 2000 14:23:13 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 42
Message-ID: <86pkch$gjv$1@nets3.rz.RWTH-Aachen.DE>
References: <388FEE81 DOT A69FB9AC AT usa DOT net>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 948982993 17023 137.226.32.75 (27 Jan 2000 14:23:13 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 27 Jan 2000 14:23:13 GMT
User-Agent: tin/1.4-19991113 ("No Labels") (UNIX) (Linux/2.0.0 (i586))
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Elsolo K. DelaRed <Elsolo AT usa DOT net> wrote:
> This is a multi-part message in MIME format.
> --------------E207A82F8D0D923471D68B0F
> Content-Type: multipart/alternative;
>  boundary="------------6EB8E5EAD5AC336ACF682A4A"

Please, don't do that. Switch off that silly 'post both HTML and plain
text' option in your Newsreader/Mailer. It's a nuisance to read, and a
waste of bandwidth. HTML has no right to live, in Usenet.  And maybe
switch off that 'vcard', too, while you're at it.

[...]
> ECHO We judge others with the ru > doc1.txt
> ECHO le of ourselves. > doc2.txt
> COPY doc1.txt /a + doc2.txt /a doc3.txt

> My final result in 'doc3.txt' is always the
> same, the two separated lines:
> We judge others with the ru
> le of ourselves.

[But you want a single line]

Your problem is that 'doc1.txt' contains, as its very last character,
a 'newline', like every proper text file on DOS or Unix is supposed
to.

For what you're trying to do, that terminating newline character would
have to be deleted, and then the files be concatenated in 'binary'
mode, probably, to avoid it getting added back in, automatically.

Well, that's actually rather hard to do, and it's definitely not
possible with DOS commands, alone. Even the unix-style utilities
(textutils, sh-utils and stuff) may not cut it, for this strange case.

One question: are the single files always one-liners, or can they both
contain more than one line of text? If the former, it'll be a whole
lot easier to pull that trick...

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019