Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Data files z/OS UNIX System Services User's Guide SA23-2279-00 |
|
awk programs work with data. Programs can obtain data typed in from the workstation or from the output of other commands (for example, through pipes), but usually data is obtained from data files. awk's data files are always text files (not binary files). The files contain readable text—for example, words, numbers, and punctuation characters. As an example, consider a data file named hobbies,
which contains information on the hobbies of a group of people. Each
line in this file gives a person's name, one of that person's hobbies,
how many hours a week he or she spends on the hobby, and how much
money the hobby costs per year. One hobby per person appears on each
separate line. The file might look like this:
Figure 1. The hobbies file
This file is included with the z/OS UNIX shell as /samples/hobbies. |
Copyright IBM Corporation 1990, 2014
|