![]() |
|
|
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 |
| comparing values of same variable | coolkid | Shell Programming and Scripting | 2 | 05-27-2008 06:45 PM |
| comparing the null values in the unix | bbc17484 | Shell Programming and Scripting | 11 | 02-12-2008 09:36 AM |
| comparing PID values of 2 Files in shell Options | marconi | Shell Programming and Scripting | 2 | 12-19-2007 01:02 PM |
| comparing two decimal values in KSH | nandinisagar | Shell Programming and Scripting | 4 | 11-15-2005 06:36 PM |
| comparing two float values | kavitha | Shell Programming and Scripting | 2 | 04-03-2004 02:32 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Problem cutting & comparing values
Hi guys
I am having some problem cutting and comparing values.I got an INI file which is has some values and ranges mapping to error and warning codes eg criticalerror:69,20,1to9 warningmsg:101,10to19 So taking the scenrio where i have a control script that execute a.ksh, when a.ksh returns a value , in this case 8, i need to map the return code to the critical error that is within the range 1 to 9. And i have having a tough time trying to cut using expr or awk toactually retrive the 1 to 9 and using it to compare. My approach is to do something and retrive 1 and 9 and use it to compare the return code.however i am having rather diffculty cutting and comparing. Can anyone out there help me out ? regards wilson |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|