Shell: Example code for recognizing non-negative integers