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