I need to parse a HTML file containing an java applet call, that is created by a third-party application, and move a line to the bottom of an applet definition. I am considering using awk or sed but a colleague recommended Perl.
I need to cut the following line and then insert it back into the file at the end of the applet defintion.
1. Find:
sendGIFToFTP("192.168.81.27","user","pass","./report_areas/","111.gif"
2.Remove it and the paste it at bottom of the applet defintion:
sendGIFToFTP("192.168.81.27","user","pass","./report_areas/","111.gif"
'>
</APPLET>
Any ideas or comments would be gratefully received.
I need to cut the following line and then insert it back into the file at the end of the applet defintion.
1. Find:
sendGIFToFTP("192.168.81.27","user","pass","./report_areas/","111.gif"
2.Remove it and the paste it at bottom of the applet defintion:
sendGIFToFTP("192.168.81.27","user","pass","./report_areas/","111.gif"
'>
</APPLET>
Any ideas or comments would be gratefully received.