![]() |
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 |
| Abacus Formula Compiler 1.2.0 (Default branch) | iBot | Software Releases - RSS News | 0 | 11-05-2008 11:10 PM |
| Formula help | bobo | UNIX for Dummies Questions & Answers | 8 | 03-29-2008 02:53 AM |
| formula to get the swap space on a machine | melanie_pfefer | SUN Solaris | 1 | 03-03-2008 03:15 PM |
| Help with formula in a script | scottzx7rr | Shell Programming and Scripting | 3 | 08-15-2007 05:19 AM |
| Quadratic Formula Program | zeek | UNIX for Advanced & Expert Users | 2 | 02-22-2002 11:32 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
how to create script for this formula?
Hello Unix gurus,
Can anyone tell me the most efficient way to create script for the formula? Formula: Ans = 1 - ((Buffer pool data physical reads + Buffer pool xda physical reads + Buffer pool index physical reads + Buffer pool temporary data physical reads + Buffer pool temporary xda physical reads + Buffer pool temporary index physical reads ) / (Buffer pool data logical reads + Buffer pool xda logical reads + Buffer pool index logical reads + Buffer pool temporary data logical reads + Buffer pool temporary xda logical reads + Buffer pool temporary index logical reads )) * 100% My input file is.... ================================================== $ cat bphit.txt Buffer pool data logical reads = 19622675514 Buffer pool data physical reads = 2032513088 Buffer pool temporary data logical reads = 2061535206 Buffer pool temporary data physical reads = 2156609 Asynchronous pool data page reads = 1206874663 Buffer pool data writes = 14270567 Asynchronous pool data page writes = 14226588 Buffer pool index logical reads = 11674823029 Buffer pool index physical reads = 137136399 Buffer pool temporary index logical reads = 0 Buffer pool temporary index physical reads = 0 Asynchronous pool index page reads = 24574557 Buffer pool index writes = 5594544 Asynchronous pool index page writes = 5566653 Buffer pool xda logical reads = 6 Buffer pool xda physical reads = 5 Buffer pool temporary xda logical reads = 0 Buffer pool temporary xda physical reads = 0 Buffer pool xda writes = 0 Asynchronous pool xda page reads = 0 Asynchronous pool xda page writes = 0 ================================================== What will be the most efficient way to achieve this? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|