ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <umag...@apache.org>
Subject Re: FilterChains - grep and sed
Date Tue, 03 Dec 2002 03:07:22 GMT
----- Original Message -----
From: "Scott Stirling" <scottstirling@rcn.com>


> Seems like sed and grep could be implemented as filterreaders (see
> <http://jakarta.apache.org/ant/manual/CoreTypes/filterchain.html>).  The
> LineContainsRegExp filterreader is already a solid foundation for grep.  A
> little more implementation and a few params to support flags for inverse
> matching, number of before/after lines of context, ignore-case, etc. and
> you'd have 90% of grep.

+1

>
> A little sed "engine" would be a little harder but could also be done.
How
> would you do it?  You could pass sed one-liners as param values, or set a
> param value to the name of a file to read in with a sed script.  Hmmm.

Interesting thought.

>
> Scott Stirling
>

Cheers,
Magesh




--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message