Delila Program: wtco

wtco program

Documentation for the wtco program is below, with links to related programs in the "see also" section.

{   version = 1.26; (* of wtco.p 2015 Oct 19}

(* begin module describe.wtco *)
(*
name
   wtco: what characters are in a file? counts

synopsis
   wtco(input: in, output: out)

files
   input: the file to be studied
   output: an alphabetic list of the characters in the file, giving:
      the character,
      the ordinal number of the character (pascal ord function),
      how many such characters are in the file,
      and the percent of the character in the file.
      Comment lines begin with "**".
      If the character is not printable, the column contains '__'
      (two underscores).

   ONLY THE COUNT COLUMN IS PROVIDED IN THIS PROGRAM

description
   Sometimes it is necessary to determine what characters are in a file.
   if the file is very large, it is not possible to do this by hand.

examples

   For this text:

      "Four score and seven years ago our fathers brought forth on this
      continent, a new nation, conceived in Liberty, and dedicated to the
      proposition that all men are created equal."
      3.14159265358979323846264338327950

   in a file named fourpi, the Unix command
      wtco < fourpi
   gives:

** wtco 1.20
** 238 characters found
**
** char ord(char)  count percent
__         13          4    1.68 CR: Carriage Return
__         32         51   21.43 Space
  "        34          2    0.84
  ,        44          3    1.26
  .        46          2    0.84
  0        48          1    0.42
  1        49          2    0.84
  2        50          4    1.68
  3        51          7    2.94
  4        52          3    1.26
  5        53          4    1.68
  6        54          3    1.26
  7        55          2    0.84
  8        56          3    1.26
  9        57          4    1.68
  F        70          1    0.42
  L        76          1    0.42
  a        97         13    5.46
  b        98          2    0.84
  c        99          6    2.52
  d       100          7    2.94
  e       101         18    7.56
  f       102          2    0.84
  g       103          2    0.84
  h       104          6    2.52
  i       105          9    3.78
  l       108          3    1.26
  m       109          1    0.42
  n       110         14    5.88
  o       111         14    5.88
  p       112          2    0.84
  q       113          1    0.42
  r       114         11    4.62
  s       115          6    2.52
  t       116         15    6.30
  u       117          4    1.68
  v       118          2    0.84
  w       119          1    0.42
  y       121          2    0.84

see also
   whatch.p

author
   Thomas Schneider

bugs
   none known

technical notes
   The constant maxchars determines the number of characters accepted.

*)
(* end module describe.wtco *)
{This manual page was created by makman 1.45}

{created by htmlink 1.62}
U.S. Department of Health and Human Services  |  National Institutes of Health  |  National Cancer Institute  |  USA.gov  | 
Policies  |  Viewing Files  |  Accessibility  |  FOIA