![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Awk to print distinct col values | anduzzi | Shell Programming and Scripting | 22 | 08-18-2008 06:09 PM |
| counts the number of distinct words | Net-Man | Shell Programming and Scripting | 14 | 08-18-2008 03:26 PM |
| how to pick distinct records.......... | ss4u | UNIX for Dummies Questions & Answers | 3 | 01-04-2007 02:39 AM |
| select distinct row from a file | merry susana | UNIX for Dummies Questions & Answers | 7 | 05-03-2005 07:54 AM |
| Comparing a distinct value in 1 list with another list | manualvin | Shell Programming and Scripting | 6 | 06-22-2004 07:42 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Count the distinct list of ids
Hello guys,
I have a file in the following format(each line seperated by TAB): ========= Filename id Filename id1 Filename id Filename1 id7 Filename1 id7 Filename2 id1 Filename2 id1 Filename2 id3 Filename3 id2 Filename3 id4 Filename3 id4 Filename3 id6 ========= I would like to get the count of distinct ids from each file: Output should like : Filename 2 Filename1 1 Filename2 2 Filename3 3 Can some please help me? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|