The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
problem in comparing numeric with string
.
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
:
problem in comparing numeric with string
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
01-28-2008
Yogesh Sawant
Part Time Moderator and Full Time Dad
Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
does this help:
Code:
if [ $FILE_COUNT == "VARIABLE" ] ; then echo "is VARIABLE" else echo "is a number" fi
Yogesh Sawant
View Public Profile
Visit Yogesh Sawant's homepage!
Find all posts by Yogesh Sawant
Find Yogesh Sawant's past nominations received
Find Yogesh Sawant's present nominations given