#!/bin/sh for w in *.conf; do [ ! -r "${w}.valid" ] && continue if ../kwyc "$w" -c | diff -u - "${w}.valid"; then printf "%s: OK\n" "$w" fi done