The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
String comparison
.
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
:
String comparison
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
07-10-2009
46019
Registered User
Join Date: Jun 2007
Posts: 11
String comparison
Hi,
I have the below logic. Here 'X' is a variable having some string.
if [$X = "Today is holiday."]
then
echo "i dont need to go to ofc"
else
echo "i need to go to ofc"
Please help me to write it in unix.
Thanks.
46019
View Public Profile
Find all posts by 46019
Find 46019's past nominations received
Find 46019's present nominations given