From 654fe9f9a8ed988b8347db2b202e45c4ff52188e Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Thu, 22 Aug 2024 19:01:48 -0400 Subject: fch - find character --- fch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 fch 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 " + exit 2 +fi + +args="$@" +awk -v charname="$args" ' + $0 ~ charname { + printf "%s ",$0 + system("9 unicode " $1) + } +' /opt/plan9/lib/unicode -- cgit v1.2.3