shithub: riscv

ref: b7a4dab54ab89f9cd62f3a31166cff553450cd28
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
'