[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: GREP



On Fri, Aug 05, 2005 at 11:25:47AM -0500, Ed Curtis wrote:
> 
>  I need some help with grep. In fact I'm not really sure grep is what I
> should be using. I would list to find the number of files containing a
> string. Not the number of times the string appears in a single file.
> 
> Say I'm searching the /var/spool/mail dir and want to see how many times
> the string 'enlargement' occurs in that directory. What do I need to do?
> 
> Thanks,
> 
> Ed
Hi Ed,
here is a thing to try! 
-------------------------------------
Running: apt-cache show grepmail
Package: grepmail
Priority: optional
Section: mail
Installed-Size: 164
Maintainer: Joey Hess <joeyh@debian.org>
Architecture: all
Version: 5.3031-1
Depends: perl, libscalar-list-utils-perl, libmail-mbox-messageparser-perl (>= 1.20), libtimedate-perl, libinline-perl
Suggests: libdate-manip-perl
Filename: pool/main/g/grepmail/grepmail_5.3031-1_all.deb
Size: 49012
MD5sum: 0d3487012f05f6b8c159d280ae5bed1b
Description: search mailboxes for mail matching an expression
 Grepmail looks for mail messages containing a pattern, and prints the
 resulting messages. Usage is very similar to grep. It can handle
 compressed mailbox files, and can search the header or body of emails.
 It also supports searches constrained by date and size.
Tag: works-with::mail, interface::commandline, role::sw-utility, implemented-in::perl, use::searching
---------------------------
you may also want to look into 'wc'.
Cheers,
kev
-- 
counter.li.org #238656 -- goto counter.li.org and be counted!
      `$'         $'         
       $          $                      _
 ,d$$$g$  ,d$$$b. $,d$$$b`$' g$$$$$b $,d$$b
,$P'  `$ ,$P' `Y$ $$'  `$ $  "'   `$ $$' `$
$$     $ $$ggggg$ $     $ $ ,$P""  $ $    $
`$g. ,$$ `$$._ _. $ _,g$P $ `$b. ,$$ $    $
 `Y$$P'$. `Y$$$$P $$$P"' ,$. `Y$$P'$ $.  ,$.

Attachment: signature.asc
Description: Digital signature


Reply to: