#!/bin/sh echo -n $0: 'Suffix matching... ' cat >test.in <<'eof' It is not wise to use foowise. eof cat >test.db <test.ref <test.data if cmp test.ref test.data then rm -f test.* echo passed else echo failed exit 1 fi