                               *** CountIt ***

(*---------------------------------------------------------------------------
    :Program.     CountIt
    :Contents.    Counts tokens in an ASCII-File
    :Author.      Christian König
    :Address.     Christian Koenig on 2:246/4.4 (FIDO-Net)
    :Copyright.   Public Domain
    :Language.    Modula-2
    :Translator.  M2Amiga V3.3d
    :Optimizer.   M2o
    :History.     V1.0 13-Jul-90 Koenig
    :Bugs.        none, I hope
    :Remark.      Thanks to Toni 'Wegar' Günzel-Peltner for the permission
    :Remark.      to use his subroutine 'LoadFile' from 'TextConvert'
---------------------------------------------------------------------------*)


You are encouraged to make as much copies of CountIt as you like
        as long as you're not violating any of the statements
        below.

        - Nobody is allowed to gain any profit by using and/or
          distributing this program.

        - This program may only be distributed with its sources
          and the doc - file.







Purpose: Very often you  have to  count special  words or  signs in an
ASCII-File. This is, was CountIt does. You also can  count parts  of a
word or whole strings. CountIt is for CLI-use only.



Syntax:  CountIt <TOKEN> <ASCII-FILE> {CS}

<Token> is the string you search for. E.g. # or Hi! or  "Let's go"  or
"wer"  etc.  NOT  ALLOWED  are Spaces  at first  or last  position and
space-gaps with two or more spaces.

<ASCII-File> is the name of the ASCII-File (and the path) you want  to
use.  Please  use  only  ASCII-Files,  others  (ANSI-Files)  may cause
problems !

'CS' If you  set this option, CountIt  will make a difference  between
upper case characters and lower case characters. E.g.: With CS NOT set
"Hi FrEaK" = "HI Freak".



Thanks to: Toni 'Wegar' Günzel-Peltner for his routine 'LoadText' from
the program 'TextConvert' This routine is very nice, I think.



Bugs: I don't know  any  bugs,  but who knows.... In case of problems,
please sent a mail to me via FIDO: CHRISTIAN  KOENIG ON  2:246/4.4 Oh,
yes, there IS one problem: A&L  M2 II programs could  get into trouble
with some shells, like the W-shell. Sorry, but this  is not  my fault.
If you have any hints for further versions, feel free to write me.

Enjoy

   Christian



