commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralf Fischer ...@makii.de>
Subject Re: Grep file utility
Date Tue, 16 Aug 2005 10:58:38 GMT
Howdy,

On Fri, Aug 05, 2005 at 01:29:40PM -0500, Jim Garacci wrote:
> I was looking for a file utility to perform a grep action and get the
> results as a List.
> 
> e.g.   List matches = SomeUtility.grep(new File("my.log"), ".*ERROR.*");
> 
> Is there anything like this implemented in one of the commons projects?

Maybe some regexp packages do what you want, if you apply a pattern
line-wise.

Cheers, 
  Ralf

-- 
Ralf Fischer


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message