
[已解決]如何使用gawkexe獲取html文件中的字符串最后由 hnfeng 于 -7-9 08:12下面代碼是 html 文件的一部分
想獲取里面的信息:2.5_activity_H2J-07-05 21:06:08-07-05 23:14:49-07-06 02:34:51-07-06 02:44:46請教怎樣使用 gawk.exe (其他批處理、第三方也可以)獲取上面的字符串,存到一個文本文件中。多謝了nclick="copycode($('code0'));">復制代碼
- <一些無關字符>
- <table width=100% border=1 cellpadding=5 cellspacing=0 bordercolor=#E3F2FD>
- <tr bgcolor=#1565C0><td colspan=4><strong><font color=#FFFFFF size=3 face=Segoe UI Variable, Segoe UI, Verdana, sans-serif>日志報告:概述</font></strong>
- </td></tr>
- <tr>
- <td bgcolor=#BBDEFB><strong><font color=#000077 size=3 face=Segoe UI Variable, Segoe UI, Verdana, sans-serif>任務名稱</font></strong></td>
- <td width=23% bgcolor=#FFFFFF><font size=3 face=Segoe UI Variable, Segoe UI, Verdana, sans-serif>2.5_activity_H2J</font></td>
- <td bgcolor=#BBDEFB><font color=#000077 size=3 face=Segoe UI Variable, Segoe UI, Verdana, sans-serif><strong>類別</strong></font></td>
- <一些無關字符>
- </tr>
- <tr>
- <td bgcolor=#BBDEFB><strong><font color=#000077 size=3 face=Segoe UI Variable, Segoe UI, Verdana, sans-serif>開始檢查</font></strong></td>
- <td width=23% bgcolor=#FFFFFF><font size=3 face=Segoe UI Variable, Segoe UI, Verdana, sans-serif>-07-05 23:14:49</font></td>
- <td bgcolor=#BBDEFB><font color=#000077 size=3 face=Segoe UI Variable, Segoe UI, Verdana, sans-serif><strong>檢查完畢</strong></font></td>
- <td width=39% bgcolor=#FFFFFF><font size=3 face=Segoe UI Variable, Segoe UI, Verdana, sans-serif>-07-06 02:34:51 (3 小時, 20 分鐘, 2 秒)</font></td>
- </tr>
- <tr>
- <td bgcolor=#BBDEFB><strong><font color=#000077 size=3 face=Segoe UI Variable, Segoe UI, Verdana, sans-serif>同步任務開始時間</font></strong></td>
- <td width=23% bgcolor=#FFFFFF><font size=3 face=Segoe UI Variable, Segoe UI, Verdana, sans-serif>-07-05 21:06:08</font></td>
- <td bgcolor=#BBDEFB><font color=#000077 size=3 face=Segoe UI Variable, Segoe UI, Verdana, sans-serif><strong>同步任務結束時間</strong></font></td>
- <td width=39% bgcolor=#FFFFFF><font size=3 face=Segoe UI Variable, Segoe UI, Verdana, sans-serif>-07-06 02:44:46 (5 小時, 38 分鐘, 37 秒)</font></td>
- </tr>
- </table>
- <一些無關字符>

