![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 's | manas6 | UNIX for Dummies Questions & Answers | 0 | 06-05-2008 03:44 AM |
| Shell script to catch PL/SQL return values | Veera_Raghav | Shell Programming and Scripting | 0 | 06-26-2006 02:16 PM |
| Possible return values for $? | 435 Gavea | Shell Programming and Scripting | 3 | 01-03-2006 10:06 PM |
| perl "system" cmd return values.. | sekar sundaram | Shell Programming and Scripting | 0 | 11-24-2005 04:00 AM |
| exit/return values | vslewis | UNIX for Dummies Questions & Answers | 1 | 11-17-2004 11:12 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi.
I have a script like this: nawk 'BEGIN {FS=","; TOT1=0; REJ1=0;} { if($7=="TOTAL") { TOT1=TOT1 +$8} if($7=="REJS") { REJ1=REJ1 +$8} }' FILE_123.dat and what I need is to be able to use the values stored in TOT1 and REJ1 in the unix env to compare them and decide if send an email or not like this: if [ $REJ1 > $TOT1/30 ] { mailx xxxxxxxxxx } How can I read/use those values out of the awk? Thanks. |
| Forum Sponsor | ||
|
|