shithub: riscv

ref: 6d25e194e2160a6ed8b2a7e399fff90e2215ff3c
dir: /sys/src/cmd/dict/egfix/

View raw version
#!/bin/rc

sed '
	s/[ 	]+$//
	/	/!d
	/, /{; h; s/,.*//; p; g; s/	.*, /	/; }
' $1 |
sed '
	/\(/{; h; s/\([^)]+\)//; p; g; s/[()]//g; }
' |
sed '
	s/	 +/	/
	s/[ 	]+$//
	s/  +/ /g
'