home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / cmplngmg / cl_jun89.arc / AWK210.ARC / ARRAY.AWK < prev    next >
Text File  |  1988-03-02  |  204b  |  6 lines

  1. $1 == "IN" { if ($2 in a) print $2, a[$2]; else print $2, "is not in a"; next}
  2. $1 == "DEL" { delete a[$2]; next }
  3. $0 == "ALL" { for (i in a) printf("a[%s] = %s\n", i, a[i]) }
  4. NF == 2 { a[$1] = $2 }
  5.  
  6.