![]() |
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 add numbers | email-lalit | Shell Programming and Scripting | 8 | 05-12-2008 06:34 PM |
| ksh and hex numbers | JamesByars | Shell Programming and Scripting | 2 | 01-15-2008 03:36 PM |
| to count their numbers using awk | cdfd123 | Shell Programming and Scripting | 3 | 10-15-2007 03:24 AM |
| How to add numbers? | pnxi | Shell Programming and Scripting | 7 | 09-11-2003 06:25 AM |
| Add some numbers! | TalkShowHost | Shell Programming and Scripting | 3 | 05-15-2002 12:28 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
need top 3 numbers
Hi Every one
I have a text file which is having a might be 100,000 record but i only need a maximum top 3 numbers and its phone number . please see below the samle file usa,asasas,ssss,asasasasas,9005451,10000,ikiikkk uk,asasas,ssss,asasasasas,9005452,110000,ikiikkk uae,asasas,ssss,asasasasas,9005453,20000,ikiikkk china,asasas,ssss,asasasasas,9005454,10,ikiikkk kuwait,asasas,ssss,asasasasas,9005455,100,ikiikkk qatar,asasas,ssss,asasasasas,9005456,5000000,ikiikkk bahrain,asasas,ssss,asasasasas,9005457,80,ikiikkk I need the top three maximum charge vaue which is filed number 6. it should give me the top 3 results like this. 9005456,5000000 9005452,110000 9005453,20000 PLEASE GIVE ME ANY COMMAND OR UNIX SHELL SCRIPT WHICH CAN HELP ME OUT TO CALCULATE THE TOP 3 NUMBERS OR EVEN I CAN APPLY THIS WITH 100 NUMBERS. Regards |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|