![]() |
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 |
| how to read the column and print the values under that column | gemini106 | Shell Programming and Scripting | 6 | 03-28-2008 07:05 AM |
| How to check Null values in a file column by column if columns are Not NULLs | Mandab | Shell Programming and Scripting | 7 | 03-15-2008 09:57 AM |
| Use awk to calculate average of column 3 | grossgermany | UNIX for Dummies Questions & Answers | 6 | 07-27-2007 01:29 PM |
| calculate average of column 2 | onthetopo | UNIX for Dummies Questions & Answers | 0 | 07-06-2007 08:16 PM |
| how do I calculate percentage ? | the_learner | High Level Programming | 6 | 04-18-2007 04:40 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to calculate the percentage for the values in column
Hi, I am having the file which contains the following two columns.
518 _factorial 256 _main 73 _atol 52 ___do_global_ctors 170 ___main 52 ___do_g How can calculate the percentage of each value in the first column ? first need to get the sum of the first column and then each value is divide by sum and multiply by 100 to get the percentage. How can we write script for that ? Thanks and Regards Raja |
|
||||
|
Yep, that's much neater.
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| percentage columns |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|