![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error in String comparison | sreedivia | SUN Solaris | 3 | 10-24-2008 03:48 AM |
| string comparison | Jatsui | Shell Programming and Scripting | 5 | 02-04-2008 04:28 PM |
| Strange Number comparison issue | shihabvk | UNIX for Advanced & Expert Users | 9 | 04-10-2007 01:19 AM |
| string comparison | fedora | Shell Programming and Scripting | 2 | 01-03-2007 03:20 PM |
| String Comparison | abey | High Level Programming | 1 | 10-19-2005 01:08 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi,
I was trying to do a string comparison using if. However, the comparison result is getting treated as a executable statement. I'm not sure where I'm making the mistake! $ typeset TEST_VAR='YUP' $ if [$TEST_VAR='YUP']; then echo 'Got It!'; fi; ksh: [YUP=YUP]: not found. Any help is appreciated! |
| Bookmarks |
| Tags |
| compare, if statement, sh, string |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|