Date: Tue, 14 Feb 1995 12:09:21 -0500 From: fdonahoe AT wilkes1 DOT wilkes DOT edu (Frank Donahoe) To: rollins AT grue DOT caltech DOT edu Subject: Displaying manual files Cc: djgpp AT sun DOT soe DOT clarkson DOT edu The following batch file provides an efficient way to display UNIX type manual files, usually man.1 - - - - cut here for man.bat @ECHO OFF if "%1"=="" goto USAGE if "%2"=="" goto USAGE if exist %2.%1z goto ZCAT if exist %2.%1 goto CAT goto ERROR :ZCAT path0\gzip.exe -cd %2.%1z | path1\cawf.exe -man | path2\less.exe goto END :CAT path1\cawf.exe -man %2.%1 | path2\less.exe goto END :USAGE echo To display file.1[z] issue at the prompt the command man 1 file echo. echo It is assumed that MAN.BAT is in the PATH and file.1[z] is in the echo current directory. goto END :ERROR echo The selected file does not exist. Check spelling and/or directory. goto END If the manual file is larger than the cluster size it should be compressed as: gzip -9 manual.1 Find cawf404.zip and less177e.zip at SimTel mirrors. For example, oak.oakland.edu: /SimTel/msdos/textutil/ These should be installed very carefully in accordance with the instructions in the packages. gzip may be found in oak.oakland.edu: /SimTel/msdos/compress as gzip124.zip, and, of course, the version compiled with djgpp is with the rest of it in /SimTel/msdos/djgpp/ zcat, which comes with the djgpp distribution, may replace gzip -cd, but if one is going to retain gzip there is no need for both programs. NB Don't forget to replace path0, path1 and path2 with the actual path to these programs. In my case, gzip version 1.1.2 (small!) is in c:\usr\bin with cawf, and I have renamed less to more and put it in c:\dos so it is in the PATH. c:\usr\bat contains all the batch files and is first in the PATH. :END ECHO. -- - - - - Frank Donahoe, Emeritus - Physics fdonahoe AT wilkes1 DOT wilkes DOT edu Wilkes University, Box 111 717-675-2493 (H) Wilkes-Barre, PA 18766 717-675-6567 (fax) USA `Haste makes entropy!' Clausius - - - -