![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| weird file list problem | jmmora | AIX | 8 | 08-08-2008 12:18 PM |
| Weird date difference problem | meeraKh | Shell Programming and Scripting | 22 | 03-12-2008 11:50 PM |
| Weird crontab problem | RobSand | SUN Solaris | 8 | 10-09-2007 06:12 PM |
| Weird problem with output from "date '+3600*%H+60*%M+%S' " | m223464 | Shell Programming and Scripting | 5 | 02-16-2006 12:22 PM |
| weird problem with removing files | rein | UNIX for Advanced & Expert Users | 2 | 08-15-2005 08:51 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Weird Problem???
I have a problem I don't understand... I am trying to declare a variable, and then output the results of that variable, couldn't be simpler
Code:
#!/bin/ksh
VAR='Oranges'
if [ ${VAR}='Lemons' ]
then
echo "Found Lemons"
elif [ ${VAR}='Oranges' ]
then
echo "Found Oranges"
fi
added code tags for readability --oombera Last edited by oombera; 02-17-2004 at 03:30 PM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|