shithub: riscv

ref: 61f4c085c402af665b436f6d010d61107551d8a3
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
'