You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Mikael Petterson (KI/EAB)" <mi...@ericsson.com> on 2006/05/11 07:34:22 UTC
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?