Skip to content

cwsub

Writes one row per substitution. Generated from cwsub -h and cwsub -d.

Options

cwsub generates files suitable for use by dBase or Lotus-like programs
Each record describes one substitution.
Usage: cwsub [options] eventfile...
options:
  -h        print this help
  -i id     only process game given by id
  -y year   Year to process (for teamyyyy and aaayyyy.ros).
  -D dir    Directory to find team and roster files (default is current directory)
  -s start  Earliest date to process (mmdd).
  -e end    Last date to process (mmdd).
  -a        generate Ascii-delimited format files (default)
  -ft       generate Fortran format files
  -m        use master player file instead of local roster files
  -f flist  give list of fields to output
              Default is 0-9.
  -d        print list of field numbers and descriptions
  -Q        operate quietly; do not output progress messages
  -n        print field names in first row of output

Fields

These are the available fields and the numbers to use with the -f option
to name them.  All are included by default.

number  field
------  -----
0       game id
1       inning
2       batting team
3       substitute
4       team
5       lineup position
6       fielding position
7       removed player
8       position of removed player
9       event number
10      balls
11      strikes
12      pitch sequence
13      number of balls thrown in plate appearance
14      number of called balls in plate appearance
15      number of intentional balls in plate appearance
16      number of pitchouts in plate appearance
17      number of pitches hitting batter in plate appearance
18      number of other balls in plate appearance
19      number of strikes thrown in plate appearance
20      number of called strikes in plate appearance
21      number of swinging strikes in plate appearance
22      number of foul balls in plate appearance
23      number of balls in play in plate appearance
24      number of other strikes in plate appearance
25      text of count as appears in event file