Does this help? perl -lne "print m/^\d{5}$/ ? ' OK' : ' Fail'"
tachyon
In reply to Re: Re: Re: compare stdin for a number by tachyon in thread compare stdin for a number by anoxer