#!/bin/sh for s in *_* do cat "$s/test" |grep -v "=> " | ../REPL/5DREPL >result cat "$s/test" |grep "=> " |sed 's;^...;;' >expected diff -upr result expected >&2 || echo "^ that was $s" >&2 done