Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/src/cmd/dict/gefix

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc

sed '
	s/[ 	]+$//
	/	/!d
	s/\\N''349''//g
	s/''//g
	s/	-/	/
	s/-$//
	/\([^,) ]+(\)|$)/{; h; s///; p; g; s/\(//; s/\)//; }
	/\(r, s\)$/{; s///; p; s/$/r/; p; s/r$/s/; }
' $1 |
sed '
	/\([^,) ]+(\)|$)/{; h; s///; p; g; s/\(//; s/\)//; }
	/\(r, s\)$/{; s///; p; s/$/r/; p; s/r$/s/; }
' |
sed '/ß/{; p; s/ß/ss/g; }' |
awk '
BEGIN	{ FS = "	|, " }
	{ for(i=2; i<=NF; i++)print $i "	" $1 }
' |
tr A-Z a-z |
sort -u -t'	' +0f -1 +0 -1 +1n -2

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.