home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / fish / text / editors / mat / linecount < prev    next >
Text File  |  1990-10-08  |  423b  |  13 lines

  1. .K OF,OF1,OF2,OF3,OF4
  2. .BRA {
  3. .KET }
  4. ;;    LINECOUNT --  Counts lines in text files.
  5.  
  6. MAT S #@!$%^__++ T "" TAG "^|File ^P: ^N lines" {OF$#?} {OF1} {OF2} {OF3} {OF4}
  7. ;     ^^^ Not a swear word! -- just a string which'll never match (I hope!)
  8.  
  9. ;; each file is scanned to the end, but no match is found, therefore the
  10. ;; "fail" part of the tag is output; this simply displays the pathname
  11. ;; and the number of lines scanned.
  12.  
  13.