summaryrefslogtreecommitdiffstats
path: root/src/cmd/dict/t.awk
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-11-25 03:37:45 +0000
committerrsc <devnull@localhost>2003-11-25 03:37:45 +0000
commit08708877939323c1e1cb87210193ec25fc472ff7 (patch)
treebd34e2144a3e9532ab228619d7ae8d4a0078aeeb /src/cmd/dict/t.awk
parent091f74d0a0db5ba1e098a518922525cb032a97b4 (diff)
downloadplan9port-08708877939323c1e1cb87210193ec25fc472ff7.tar.gz
plan9port-08708877939323c1e1cb87210193ec25fc472ff7.zip
add dict
Diffstat (limited to 'src/cmd/dict/t.awk')
-rw-r--r--src/cmd/dict/t.awk13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cmd/dict/t.awk b/src/cmd/dict/t.awk
new file mode 100644
index 00000000..e722a3cc
--- /dev/null
+++ b/src/cmd/dict/t.awk
@@ -0,0 +1,13 @@
+NF == 2 {
+ if($2 !~ / or / || $2 ~ /\(or/)
+ print $0
+ else {
+ n = split($2, a, / or /)
+ for(i = 1; i <= n; i++) {
+ printf "%s\t%s\n", $1, a[i]
+ }
+ }
+ }
+NF != 2 {
+ print $0
+ }