add dict
This commit is contained in:
15
src/cmd/dict/egfix
Executable file
15
src/cmd/dict/egfix
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/rc
|
||||
|
||||
sed '
|
||||
s/[ ]+$//
|
||||
/ /!d
|
||||
/, /{; h; s/,.*//; p; g; s/ .*, / /; }
|
||||
' $1 |
|
||||
sed '
|
||||
/\(/{; h; s/\([^)]+\)//; p; g; s/[()]//g; }
|
||||
' |
|
||||
sed '
|
||||
s/ +/ /
|
||||
s/[ ]+$//
|
||||
s/ +/ /g
|
||||
'
|
||||
Reference in New Issue
Block a user