Article View: comp.os.msdos.misc
Article #3967Re: "type" and "pause"
From: Ed Schwartz
Date: Wed, 30 Aug 1995 00:00
Date: Wed, 30 Aug 1995 00:00
47 lines
2720 bytes
2720 bytes
In article <420u62$5l0$1@sydney.DIALix.oz.au>, from 30 Aug 1995 15:49:54
+1000 John Savage at koala@sydney.DIALix.oz.au says...
>
[ text deleted ]
>>The method indicated by Mike saves several keystrokes, but I find it
>>rather unintuitive. In addition, it is potentially dangerous--if a
>>mistype occurs and the user presses > rather than <, the file will
>>be lost.
>
>Yes, whenever new users ask how to stop a file from disappearing off
>the top of the screen I show them only: TYPE FILENAME | MORE
>
>I'm a bit late coming in on this one, but wish to underscore the point.
>Where the veterans use MORE < FILENAME, in her haste the newbie may fail
>to differentiate one arrow from another (especially if she has not taken
>mathematics to any significant level), and MORE > FILENAME is a shortcut
>to compressing a file to zero bytes! I find nothing more difficult than
>trying to wriggle out of the accusatory "the command you told me to use
>just deleted everything on my file!", so I cowardly favour the cautious
>approach to glib DOS commands.
>
>--
>John Savage koala@sydney.dialix.com.au
But the version MORE < FILENAME is much faster, at least
if you display long files. In the form TYPE FILENAME | MORE
DOS executes the TYPE and pipes the output to a temoprary file.
Then the temporary file is fed into MORE. What DOS really does
is in this case is:
TYPE FILENAME > tempfile
MORE < tempfile
--
Ed Schwartz
+------- e-mail --------------+--- s-mail ----+---- Phone/Fax ---------+
| schwartz@sunco.co.kp.dlr.de | DLR/RM-CTC | Tel.: (0)2203-601 2648 |
| Edwin.Schwartz@dlr.de | Linder Hoehe | Fax : (0)2203-601 2701 |
| | D-51147 Koeln | |
| http://www.dlr.de | Germany | |
+-----------------------------+---------------+------------------------+
Technical Details
Message-ID:
<DE4AwD.8D1@news.dlr.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<DC0Cqv.8p1@freenet.carleton.ca> <3umj5t$a3o@driene.student.utwente.nl> <3umpfm$4ml@sun001.spd.dsccc.com> <1995Jul21.092718.1@rnis08.nut.roche.com> <420u62$5l0$1@sydney.DIALix.oz.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d683,5466b9302338b67d X-Google-Attributes: gid10d683,public X-Google-Thread: f71eb,1129b60f648004da X-Google-Attributes: gidf71eb,public From: schwartz@sunco.co.kp.dlr.de (Ed Schwartz) Subject: Re: "type" and "pause" Date: 1995/08/30 Message-ID: <DE4AwD.8D1@news.dlr.de> X-Deja-AN: 109157519 sender: news@news.dlr.de x-nntp-posting-host: pcshwa.co.kp.dlr.de references: <DC0Cqv.8p1@freenet.carleton.ca> <3umj5t$a3o@driene.student.utwente.nl> <3umpfm$4ml@sun001.spd.dsccc.com> <1995Jul21.092718.1@rnis08.nut.roche.com> <420u62$5l0$1@sydney.DIALix.oz.au> organization: DLR / RM-CTC reply-to: schwartz@sunco.co.kp.dlr.de -or- Edwin.Schwartz@dlr.de newsgroups: comp.os.msdos.misc,aus.computers.ibm-pc