|
发表于 2007-8-17 12:51:37
|
显示全部楼层
- $ cat txt
- <TD ROWSPAN='4'><font color='#000000'>1</TD><TD><font color='#000000'>1</TD><TD><font color='#000000'>602.0</TD><TD><font color='#000000'>0</TD><TD><font color='#000000'>0.021 Mbps (0 %)</TD><TD><font color='#000000'>38.015 Mbps</TD>
- $ perl -lne 'print $1 while />(\d+.*?)(:?\(.*?\))?</g' txt
- 1
- 1
- 602.0
- 0
- 0.021 Mbps
- 38.015 Mbps
-
复制代码 |
|