aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/dict/egfix2
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/dict/egfix2')
-rwxr-xr-xsrc/cmd/dict/egfix28
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cmd/dict/egfix2 b/src/cmd/dict/egfix2
new file mode 100755
index 00000000..d5af3bfe
--- /dev/null
+++ b/src/cmd/dict/egfix2
@@ -0,0 +1,8 @@
+#!/bin/rc
+
+awk '
+BEGIN { FS = " |, " }
+ { for(i=2; i<=NF; i++)print $i " " $1 }
+' $1 |
+tr A-Z a-z |
+sort -u -t' ' +0f -1 +0 -1 +1n -2