![]() |
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 |
| 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 |
| Ksh How to test if variable is numeric?? | developncode | UNIX for Dummies Questions & Answers | 8 | 03-19-2009 06:42 PM |
| Keithley Introduces Linux-Based RF Parametric Test Systems - Test and Measurement.com | iBot | UNIX and Linux RSS News | 0 | 07-23-2007 10:30 AM |
| Test whether absolute path in variable | dkieran | Shell Programming and Scripting | 2 | 05-21-2007 05:14 PM |
| test Null variable | kykyboss | Shell Programming and Scripting | 1 | 11-24-2006 12:02 PM |
| How to test if a variable is in the right format | dbrundrett | Shell Programming and Scripting | 2 | 07-05-2004 07:05 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Test variable
hi,
i store a constant in a variable and want to test whether it is M or Z. how can i achieve this?? please help Code:
variable='M' if [ $variable = 'M' ] then ehco 'success' fi; Last edited by Yogesh Sawant; 04-18-2008 at 03:58 AM.. Reason: added code tags |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|