chiark / gitweb /
wrapper for unicode(1) to examine each character in a word
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Tue, 7 Apr 2009 09:46:49 +0000 (09:46 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Tue, 7 Apr 2009 09:46:49 +0000 (09:46 +0000)
unicode-word [new file with mode: 0755]

diff --git a/unicode-word b/unicode-word
new file mode 100755 (executable)
index 0000000..b31107e
--- /dev/null
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+# Perl doesn't seem to like -CA in the #! line.
+perl -w -CA -e '
+    use strict;
+    for my $char (split //, join " ", @ARGV) {
+       system("unicode", $char);
+    }
+' "$@"