# Description # This script is a short-cut for looking up the catalan/ english phraselists # which were extracted from the site http://www.intercat.gencat.es/ # At the moment it doesn't matthew if the lookup word is catalan or english # since the script just does a grep of the whole plain text file. # Example: # ./gencat "sorry" # # Author: # m.j.bishop if [ "$1" = "" ] then echo "usage: $0 lookupWord " cat $0 | sed -n "/^[ ]*#/p" exit 1; fi grep -i $1 /home/matthew/public_html/catalan/gencat-phraselist-en-ca.bsv