The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-25-2007
malaymaru malaymaru is offline
Registered User
  
 

Join Date: May 2005
Posts: 54
Checking numeric value

Hi,

How can I check numeric value in shell?

I am passing one parameter (integer) and I want to restrict any other characters except 0-9.

./script xyz 10

Here 2nd parameter (10) should be integer only.

Can anyone help on this?

Malay