| |
| | Common threads: Awk by example, Part 3 |
 | | And, if there is both an expense and income category listed, then this amount is a "category transfer"; that is, the dollar amount will be subtracted from the expense category and added to the income category. |
 | | Again, all these categories are virtual, but are very useful for tracking income and expenditures, as well as for budgeting. |
 | | In addition, we also refer to several global variables: curmonth, which holds the numeric value of the month of the current record, $2 (the expense category), $3 (the income category), and amount ($7, the dollar amount). |
| www-106.ibm.com /developerworks/linux/library/l-awk3.html (2792 words) |
|