aboutsummaryrefslogtreecommitdiffstats
path: root/fch
diff options
context:
space:
mode:
Diffstat (limited to 'fch')
-rwxr-xr-xfch17
1 files changed, 17 insertions, 0 deletions
diff --git a/fch b/fch
new file mode 100755
index 0000000..0c651d2
--- /dev/null
+++ b/fch
@@ -0,0 +1,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