home *** CD-ROM | disk | FTP | other *** search
- @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
-