|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
List all files with sum of matching word
Code:
grep -c 'avihai' 1.log will give me count of 'avihai' in log I want to have a list of files in the folder that show file name with count side by side. Please advice Last edited by Scott; 01-13-2013 at 07:42 AM.. Reason: Code tags |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
Have you tried Code:
grep -c avaihai *.log |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
You are right!
Thank you
|
| Sponsored Links | ||
|
![]() |
| Tags |
| grep -c |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| list files not matching wild card | lijjumathew | Shell Programming and Scripting | 4 | 07-31-2012 06:09 PM |
| Script to list non matching files using pattern | meenavin | UNIX for Dummies Questions & Answers | 7 | 11-17-2011 07:39 AM |
| calculate sum size of files by date (arg list too long) | beginningDBA | Solaris | 2 | 08-04-2010 10:45 PM |
| Delete all files if another files in the same directory has a matching occurence of a specific word | premier_de | Shell Programming and Scripting | 2 | 11-20-2009 04:48 AM |
| sum of all matching rows using awk | i.scientist | UNIX for Dummies Questions & Answers | 8 | 08-06-2008 08:13 PM |
|
|