#!/bin/sh for a in `seq 1 7000`; do OUT=`./ia5 -n $a` OUT2=`./ia5 -w $OUT` if [ $OUT2 != $a ]; then echo "Error in $a -> $OUT -> $OUT2" fi done