Ah...makes sense. Thanks for all the replies. SamBones, your solution sounds great, but I'm using the bash shell. Thanks though. And thank you pmcmicha for your solution.
Kelly
Is there anyway to do type checking in a UNIX script? I need to check if a command line argument to my script is an integer. I'm using a while loop to get each character, but I don't know how to check if the character is an integer. I tried checking if it was between 0 and 9, but I got an...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.