![]() |
|
|
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 |
| Help me streamline this counting part of my script. | LinuxRacr | Shell Programming and Scripting | 13 | 10-20-2008 12:59 PM |
| counting in shell script | zedex | Shell Programming and Scripting | 3 | 08-25-2007 03:14 PM |
| Counting up a variable | Kenada | Shell Programming and Scripting | 3 | 07-18-2007 04:07 AM |
| Counting and sort | bobo | UNIX for Dummies Questions & Answers | 4 | 05-23-2006 09:02 PM |
| Counting LOC in C | amatsaka | High Level Programming | 1 | 06-04-2002 04:18 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi,
I have a script which greps for a word in a file contains records. I grabbed a particular column & sent the colomn values to a file. I need to find each column value, the times it appeared in the file. My script is: grep sceneority <file> | cut -f 6 >> swi With above I grabbed the 6 th column and sent to swi file I am stuck at how to find the occurance of column values in "swi" file. Plz help me. Ex: The file has following column values: 123 324 123 123 435 435 The output should be 123 is 3 times 324 is 1 time 435 is 2 times Thanks & Regards, Pradeep. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|