The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
to check variable if its non numeric
.
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
:
to check variable if its non numeric
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
12-06-2007
sachin.gangadha
Registered User
Join Date: Nov 2007
Posts: 37
to check variable if its non numeric
if test $b -ne [0-9]
then
echo "\n\n\n\tPassword reset has been done successfully"
else
echo "\n\n\n\tAn error occurred"
fi
i want to check whether $b is non-numeric so how to do that?
sachin.gangadha
View Public Profile
Find all posts by sachin.gangadha
Find sachin.gangadha's past nominations received
Find sachin.gangadha's present nominations given