home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer 7500
/
MAX_PROGRAMMERS.iso
/
CLIPPER
/
MISC
/
AWK210.ZIP
/
ARRAY.AWK
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
1988-03-02
|
204 b
|
6 lines
$1 == "IN" { if ($2 in a) print $2, a[$2]; else print $2, "is not in a"; next}
$1 == "DEL" { delete a[$2]; next }
$0 == "ALL" { for (i in a) printf("a[%s] = %s\n", i, a[i]) }
NF == 2 { a[$1] = $2 }