gawk: Sample Data Files
1
1 1.2 Data files for the Examples
1 ===============================
1
1 Many of the examples in this Info file take their input from two sample
1 data files. The first, 'mail-list', represents a list of peoples' names
1 together with their email addresses and information about those people.
1 The second data file, called 'inventory-shipped', contains information
1 about monthly shipments. In both files, each line is considered to be
1 one "record".
1
1 In 'mail-list', each record contains the name of a person, his/her
1 phone number, his/her email address, and a code for his/her relationship
1 with the author of the list. The columns are aligned using spaces. An
1 'A' in the last column means that the person is an acquaintance. An 'F'
1 in the last column means that the person is a friend. An 'R' means that
1 the person is a relative:
1
1 Amelia 555-5553 amelia.zodiacusque@gmail.com F
1 Anthony 555-3412 anthony.asserturo@hotmail.com A
1 Becky 555-7685 becky.algebrarum@gmail.com A
1 Bill 555-1675 bill.drowning@hotmail.com A
1 Broderick 555-0542 broderick.aliquotiens@yahoo.com R
1 Camilla 555-2912 camilla.infusarum@skynet.be R
1 Fabius 555-1234 fabius.undevicesimus@ucb.edu F
1 Julie 555-6699 julie.perscrutabor@skeeve.com F
1 Martin 555-6480 martin.codicibus@hotmail.com A
1 Samuel 555-3430 samuel.lanceolis@shu.edu A
1 Jean-Paul 555-2127 jeanpaul.campanorum@nyu.edu R
1
1 The data file 'inventory-shipped' represents information about
1 shipments during the year. Each record contains the month, the number
1 of green crates shipped, the number of red boxes shipped, the number of
1 orange bags shipped, and the number of blue packages shipped,
1 respectively. There are 16 entries, covering the 12 months of last year
1 and the first four months of the current year. An empty line separates
1 the data for the two years:
1
1 Jan 13 25 15 115
1 Feb 15 32 24 226
1 Mar 15 24 34 228
1 Apr 31 52 63 420
1 May 16 34 29 208
1 Jun 31 42 75 492
1 Jul 24 34 67 436
1 Aug 15 34 47 316
1 Sep 13 55 37 277
1 Oct 29 54 68 525
1 Nov 20 87 82 577
1 Dec 17 35 61 401
1
1 Jan 21 36 64 620
1 Feb 26 58 80 652
1 Mar 24 75 70 495
1 Apr 21 70 74 514
1
1 The sample files are included in the 'gawk' distribution, in the
1 directory 'awklib/eg/data'.
1