![]() |
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 |
| please explain the below | mail2sant | Shell Programming and Scripting | 1 | 04-04-2008 08:04 AM |
| Please can any one explain this ${0##/} | gadege | Shell Programming and Scripting | 2 | 04-01-2008 03:26 PM |
| please explain this | dummy_needhelp | Shell Programming and Scripting | 2 | 10-15-2007 01:17 AM |
| Can anyone explain plz | r_W213 | UNIX for Advanced & Expert Users | 3 | 03-27-2007 04:52 AM |
| Explain awk | hitmansilentass | Shell Programming and Scripting | 4 | 09-27-2006 02:14 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
The numeric comparisons for korn shell are
numA -eq numB - True if numA and numB are equal numA -ne numB - True if numA and numB are not equal numA -lt numB - True if numA is less than numB numA -gt numB - True if numA is greater than numB numA -le numB - True if numA is less than or equal to numB numA -ge numB - True if numA is greater than or equal to numB the string comparisons for korn shell are strA = strB - True if strA matches strB strA != strB - True if strA does not match strB strA < strB - True if strA comes before strB in a dictionary order strA > strB - True if strA comes after strB in a dictionary order So your example says to run the commands between then and fi or else if the return code of the previous command is equal to zero (0). Carl |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|