#! /bin/csh -f # Last edited on 2004-02-02 06:23:42 by stolfi # Extracts words from the raw (hexbytes) Quran, for checking purposes. # Converts them to JSAR. cat \ | egrep -v -e '^ *([\#]|$)' \ | sed \ -e '/@item{/d' \ -e '/@fix/d' \ -e 's:^@= *$: \! =:g' \ -e 's:@chinword{\(.*\)}{\(.*\)} *: \1:g' \ | tr '_ ' '\012\012' \ | egrep -v '^ *$'