delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/26/06:25:14

From: "Robert L." <vlad3 AT sympatico DOT ca>
Newsgroups: comp.os.msdos.djgpp
References: <38D7C78E DOT 2708CFD1 AT pgmincorporated DOT com> <38D8529B DOT DDCCEFB AT home DOT com> <38D8D51F DOT BF79B499 AT americasm01 DOT nt DOT com> <38D8EE96 DOT 19ED9CB6 AT home DOT com> <CNXC4.15975$1C2 DOT 394644 AT news20 DOT bellglobal DOT com> <38DCBF45 DOT 4F14B20A AT iperbole DOT bologna DOT it> <fnjpdsktthe2vqiojmc335ndbe49ja9het AT 4ax DOT com>
Subject: Re: DJGPP & CGI, I found an easier way!
Lines: 50
X-Newsreader: Microsoft Outlook Express 4.72.3155.0
X-MIMEOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Message-ID: <5lgD4.17851$1C2.492032@news20.bellglobal.com>
Date: Sun, 26 Mar 2000 04:27:45 GMT
NNTP-Posting-Host: 216.209.203.70
X-Trace: news20.bellglobal.com 954044865 216.209.203.70 (Sat, 25 Mar 2000 23:27:45 EST)
NNTP-Posting-Date: Sat, 25 Mar 2000 23:27:45 EST
Organization: Sympatico
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

So, it's very easy to make this tool :)

open file( in binary);
test if exist;
input a char;
output the char on the STDOUT;
test if eof mark;
end program;


Damian Yerrick a écrit dans le message ...
>On Sat, 25 Mar 2000 14:29:41 +0100, Giacomo Degli Esposti
><pad2369 AT iperbole DOT bologna DOT it> wrote:
>
>>"Robert L." wrote:
>>>
>>> Excuse me, but i don't have cat command in dos ( v. 7 ). I know there's
one
>>> in unix.
>>> If it exist, where can i find it, else what the "spec" of this command.
>>> ( win98 )
>>
>>You can find it in the Textutils package in DJGPP (txtXXXb.zip).
>>Anyway it is more or less equivalent to the "type" DOS command (i.e. it
>>copies files to stdout), so you can use "type" instead of "cat".
>
>One problem:
>
>C:\WINDOWS\Desktop>type /?
>Displays the contents of text files.
>
>TYPE [drive:][path]filename
>
>
>C:\WINDOWS\Desktop>
>
>
>Meaning it'll stop at the first Ctrl+Z.  It would be different if
>there were a /b option to `type'.  `cat' is often used to concatenate
>binary files, much as `copy /b foo.0+foo.1+foo.2 foo.out' is.
>
>--
>Damian Yerrick
>"I refuse to listen to those who refuse to listen to reason."
>See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html
>
>This is McAfee VirusScan. Add these two lines to your signature to
>prevent the spread of signature viruses.  http://www.mcafee.com/


- Raw text -


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