#!/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 "
" #grep -h $word dict/cedict_ts.u8 ~/bin/i18n-grep -h $word dict/cedict_ts.u8 echo '