I have a requirement where I need to check if
where r1v07l09ab is a software release.
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,
awk 'BEGIN{ if ("r1v07l09ab" < "r1v07l09ac" ) print "yup" else print "nope" }'
rakeshou, would release "r2v12" be lower or higher than "r12v2"?
this way I can pass SHELL Variables $prevRelease and $curRelease and also return the result back to SHELL
prevRelease=r1v07l09ab currRelease=r1v07l09ac VALID=`echo "$prevRelease $currRelease" | awk '{ if($1 < $2) print "1"; else print "0" }'`
Thanks ghostdog74 and porter for your responses:cool: