Dan Manthey <dan_manthey@xxxxxxxxxxx> writes: ac_eof= while grep "^CEOF$ac_eof\$" conf$$subs.sed >/dev/null 2>&1; do ac_eof=`expr $ac_eof'0' / 10 + 1` done How about something like this instead? It makes only one pass over the data and should be O(N log N) rather than O(N**2): ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q` ac_eof=`expr 0$ac_eof + 1` > I've received paperwork, and filled it out and given it to my work > to review and handle as they see fit. Please let us know when that's done, preferably by resubmitting your patch to autoconf-patches@xxxxxxxx Thanks for your work. _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf