#!/bin/sh
clef="$1ABCDEFGHIJKLMNOPQRSTUVXYZ"
while test -n "$clef"; do
  char=`echo $clef|cut -c1`
  clef=`echo $clef|cut -c2-`
  eval "ok=\$$char"
  if test -z "$ok"; then eval "$char=ok"; table="$table$char"; fi
done
# echo $table
for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24; do
  l=`expr $i / 5`
  c=`expr $i % 5`
  p=`expr 1 + $l + 5 \* $c`
  output=$output`echo $table | cut -c$p`
done
# echo $output
cat "$@" | tr A-VXYZ $output
