home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 17
/
CD_ASCQ_17_101194.iso
/
vrac
/
tsbat46.zip
/
LC.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-12-06
|
580b
|
29 lines
@echo off
echo ┌───────────────────────────────────────────────────┐
echo │ Count the number of lines in the given TEXT file │
echo │ By Prof. Timo Salmi, ts@chyde.uwasa.fi, 6-Dec-91 │
echo └───────────────────────────────────────────────────┘
rem If no parameters then give the instructions
if "%1"=="" goto _help
rem Check that the file exists
if not exist %1 goto _nofind
rem Count the lines
find /v /c "2Ω4$fD÷h38╙" %1
goto _out
:_help
echo.
echo Usage: LC FileName
goto _out
:_nofind
echo.
echo File %1 not found
goto _out
:_out
echo on