home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.ibm.pc.misc
- Path: sparky!uunet!spool.mu.edu!umn.edu!lynx!news
- From: galway@chtm.eece.unm.edu (Denis McKeon)
- Subject: Re: How to create a "more" batch file?
- Message-ID: <d4#rkmk@lynx.unm.edu>
- Date: Sun, 13 Dec 92 04:31:04 GMT
- Organization: Connemara - Computing for People
- References: <1992Dec11.235700.19707@mnemosyne.cs.du.edu>
- X-Mailer: Mail User's Shell (7.0.1 12/13/89)
- Bcc: mrosen@nyx.cs.du.edu
- Status: OR
- Lines: 24
-
- In article <1992Dec11.235700.19707@mnemosyne.cs.du.edu> mrosen@nyx.cs.du.edu (Michael Rosen) writes:
- >Is there a way I can write a batch file that will ...
- >...
- >type file.txt |more
-
- At the risk of feeding a how-many-ways-are-there-to ... thread,
- ( "create a double space-ing filter in Unix" was my favorite )
- here is one way, with no error checking and barely any prompting.
-
- @echo off
- :loop
- more < %1
- shift
- if %1.==. goto quit
- echo next file: %1
- pause > nul:
- goto loop
- :quit
-
- --
- Denis McKeon
- galway@chtm.eece.unm.edu
-
- QED: Quit and Eat Dinner
-