aboutsummaryrefslogtreecommitdiffstats
path: root/fch
blob: 0c651d209bf5f99c2b048078c1a48e65f360ed64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/sh

# Find CHaracter

if [ $# -eq 0 ]
then
	echo "Usage: fch <charname>"
	exit 2
fi

args="$@"
awk -v charname="$args" '
	$0 ~ charname {
		printf "%s ",$0
		system("9 unicode " $1)
	}
' /opt/plan9/lib/unicode