ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Priest <Robert.Pri...@bentley.com>
Subject Remove a specific line from a file.
Date Tue, 11 Nov 2003 23:12:38 GMT

Can anyone tell me how to remove a specific line from a text file using ant.


Let say I have the following file, let's call it "talking.txt":

--- begin file ---

Jenny says This is  my file.
Johnny Says this is my file.
Robert says this is my file.
Joan Says This is my file.

--- End file ---


HOw can I strip out only the line that says "Robert says this is my file." ?

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


Mime
View raw message