#! /bin/bash # Last edited on 2024-03-30 18:14:46 by stolfi # Usage: $0 PREFIX # Compares the lists ${PREFIX}.{bad,dunno,good}, # listing words that are in two or more files. prefix="$1"; shift for f1 in good bad; do for f2 in bad dunno; do if [[ "${f1}" != "${f2}" ]]; then echo "=== words in both ${prefix}.${f1} ${prefix}.${f2}:" 1>&2 bool 1.2 ${prefix}.${f1} ${prefix}.${f2} 1>&2 fi done done