The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Checking numeric value
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Checking numeric value
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
05-25-2007
malaymaru
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
malaymaru
View Public Profile
Find all posts by malaymaru
Find malaymaru's past nominations received
Find malaymaru's present nominations given