![]() |
|
|
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 |
| Count first column on the basis of two other columns | kaustubh137 | Shell Programming and Scripting | 1 | 05-29-2008 09:54 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 |
| How to count pattern in column | ahjiefreak | Shell Programming and Scripting | 12 | 12-04-2007 07:53 PM |
| How to count the record count in an EBCDIC file. | oracle8 | UNIX for Dummies Questions & Answers | 1 | 07-26-2006 08:22 PM |
| Max column count in a file | gemini | Shell Programming and Scripting | 2 | 08-24-2004 01:12 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How to get the count only if two column matches?
Hi, I have a file with the contents as below, Code:
10:23:10 GOOD 10.30.50.60 10:23:11 GOOD 10.30.50.62 10:23:12 Hello 10.30.50.60 10:23:12 BAD 10.30.50.60 10:23:13 GOOD 10.30.50.66 10:23:14 BAD 10.30.50.62 10:23:15 Hello 10.30.50.66 10:23:16 Hello 10.30.50.66 10:23:16 BAD 10.30.50.66 I need the output like this, Code:
No of Hello for 10.30.50.60: 1 No of Hello for 10.30.50.66: 2 Also Code:
No of Hello for 10:23 (time) : 3 Please anyone suggest a script for this. Thanks in advance Last edited by Yogesh Sawant; 05-27-2008 at 04:29 AM.. Reason: added code tags |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|