#!/bin/sh word=`echo $QUERY_STRING | sed -e 's/word=//g' -e 's/+/ /g' | perl -pi -e 's/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg'` # run perl for -- $queryString =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; echo "Content-type: text/html"; echo echo "Poor man's Chinese-English Dictionary" echo '' echo 'back

' echo "Poor man's Chinese-English Dictionary - by Victor Zhang" echo '
' echo '% ' echo '
' echo "Please enter a Chinese word. " echo "
"
#grep -h $word dict/cedict_ts.u8
~/bin/i18n-grep -h $word dict/cedict_ts.u8
echo '

back'