home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1995 November
/
PCWK1195.iso
/
inne
/
podstawy
/
dos
/
4dos
/
4uzytki
/
jambtm02.exe
/
READ.BTM
< prev
next >
Wrap
Text File
|
1992-11-15
|
1KB
|
38 lines
*REM This batch file is Freeware, free to use and redistribute unmodified *
*REM Jouni Miettunen * jon@stekt.oulu.fi * Oulu * Finland * Europe * 1992 *
REM a little 4DOS interface to ascii char based Jargon File Reader program
REM Timestamp 15-Nov-1992
REM Note: In case anyones interested binaries (freeware) available.
REM Note: also OS/2 version w/GUI (non-4os2) (not by me, but freeware).
break on^setlocal^unalias *
REM two environment variable used by Ascii Jargon Reader
set JARGON_F=c:\relax\jargon\jargon29.10
set JARGON_I=c:\relax\jargon\jargon.idx
iff "%1"=="" then^set b=%JARGON_I^else^set b=con^endiff
REM Let's be nice and check what's available..
iff "%@search[fgrep]"=="" then
echo You need either fgrep or to edit this batch file (%@lower[%@name[%0]]) before use.
goto end
elseiff not exist %JARGON_F .or. not exist %JARGON_I then
echo You need Jargon 2.9.10 and/or index file before use.
goto end
endiff
REM Select topic and show associated lines
REM Note: select corrupts memory == reserves, but doesn't free after use.
REM 4DOS 4.01 rev D (occurs with HUGE files eg. some 40k in size)
:choice
(if "%1" != "" fgrep -sx "%1" %JARGON_I|set a=%@select[%b,0,0,%_rows,%_columns, Jargon File 2.9.10 Index ]) >& nul
if "%a"=="" goto end
c:\relax\jargon\jargon "%@substr[%a,0,%@index[%a,:]]"|list/s^goto choice
:end
break off^quit