shithub: riscv

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