ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Add html tags in a text file
Date Thu, 11 May 2006 05:42:02 GMT
<concat> with <header> and <footer>.
<move>/<copy> with <filterchain><concatfilter append="" prepend=""/>


Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: Mikael Petterson (KI/EAB) [mailto:mikael.petterson@ericsson.com] 
>Gesendet: Donnerstag, 11. Mai 2006 07:34
>An: user@ant.apache.org
>Betreff: Add html tags in a text file
>
>Hi,
>
>I have a plain text file. I need to insert <html> at the very 
>beginning of the file and at the very end (</html>). And then 
>change the file extension.
>
>I shell script I could use something like:
>
>cat $1 | sed "s/^/<html>/g" | \
>sed "s/$/<\/html>/g" >$1.html
>
>Is there a similar function in ant?
>

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


Mime
View raw message