![]() |
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 - test if string contains alphanumeric... | tugger | Shell Programming and Scripting | 3 | 10-16-2007 04:23 AM |
| With Regex Spliting the string into Alphanumeric and Numeric part | ozgurgul | Shell Programming and Scripting | 1 | 06-30-2007 09:52 AM |
| AlphaNumeric String Operations | lakshmikanth | UNIX for Dummies Questions & Answers | 3 | 01-05-2007 06:55 AM |
| sort command - alphanumeric | gefa | Shell Programming and Scripting | 4 | 08-30-2006 10:36 AM |
| matching alphanumeric string | sskb | Shell Programming and Scripting | 4 | 12-12-2001 10:48 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
alphanumeric comparision
I have a requirement where I need to check if
Quote:
I should always check for this to be true to continue the release deployment because an older release should not be deployed by mistake. I mean only the release greater than the current release should be deployed on the server. please help. Thanks in advance. Thanks, |
|
||||
|
this way I can pass SHELL Variables $prevRelease and $curRelease and also return the result back to SHELL
Code:
prevRelease=r1v07l09ab
currRelease=r1v07l09ac
VALID=`echo "$prevRelease $currRelease" | awk '{ if($1 < $2) print "1"; else print "0" }'`
![]() |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|