当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 如何抓取指定内容?
帖子发表于 : 2007-02-11 23:16 
头像

注册: 2006-10-19 21:42
帖子: 258
地址: inside
送出感谢: 0 次
接收感谢: 0 次
我用cut来过滤.txt里面的内容"<"
cut -d< -f1 XXX.txt
他提示参数错误,那么我们如何才能以“<“为过滤符,cut命令能以单词像"dog"来做分间符的么?

grep命令里面 我想搜索 .txt文件里的所有图片地址,想他们出现在终端里,但也失败了
我是 grep "http.*.jpeg" XXX
这样也失败了。那么如何才能搜索到他们呢?

还有.txt内容里有这么一句 <title>大家好啊</title>
我想抓取“大家好”那么应该如何抓?


_________________
ubuntu是个好东西


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2007-02-11 23:41 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 272
grep -E 使用正则啊。egrep啊。先看manpages。
jpg的那种用awk最好。awk几乎是万能的。结果还要配合bash的字符串处理(撩头去尾)。

grep '\<title\>' s5-blank-utf8.html |cut -d '>' -f 2|cut -d '<' -f 1
如果是在bash里面,就更加简单,因为可以操作变量了。


_________________
● 鸣学


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2007-02-11 23:50 
头像

注册: 2006-07-14 18:56
帖子: 345
地址: Apple Valley, Planet Tux, Linux System
送出感谢: 0 次
接收感谢: 0 次
用引号把<括起来,否则bash会把它理解成重定向。
代码:
cut -d‘<’ -f1 XXX.txt

cut好像只能用字符作分隔符。

jpeg文件的后缀一般是.jpg吧。
代码:
sed -n 's!<title>\(.*\)</title>!\1!p' XXX


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2007-02-12 15:36 
头像

注册: 2006-10-19 21:42
帖子: 258
地址: inside
送出感谢: 0 次
接收感谢: 0 次
引用:
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>

<HTML>

<HEAD>

<title>玲珑玉体_中国美女</title>

<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=gb2312'><META NAME='Keywords' CONTENT='玲珑玉体'><META NAME='Description' CONTENT='图片: screen.width-461) window.open(\'http://img.com.tv/Mon_0702/214_184265_7e4b66f99595981.jpg\');&quot; src=&quot;http://img.com.tv/Mon_0702/214_184265_7e4b66f99595981.jpg&quot; border=0 orig_onmou'><link href='http://bbs.zol.com.cn/new/bbs_include/detail3.css' rel='stylesheet' type='text/css' /><SCRIPT language=JavaScript type='text/javascript' src='http://bbs.zol.com.cn/new/admin/replay_limit.js'></script>

<script language=JavaScript type='text/javascript' src='http://bbs.zol.com.cn/new/bbs_include/js_url_new.js'></script>

<SCRIPT language=JavaScript type='text/javascript' src='http://bbs.zol.com.cn/new/bbs_include/detail3.js'></script></head><body><div align='center'><div class='top_head'><table width='780' border='0' cellspacing='0' cellpadding='0'>

<tr><td><table width='100%' border='0' cellpadding='0' cellspacing='1' bgcolor='#698CC3'>

<tr><td bgcolor='#FFFFFF'><table width='100%' border='0' cellspacing='1' cellpadding='0'>

<tr><td align='center'><table width='100%' border='0' cellpadding='0' cellspacing='1' bgcolor='#698CC3'>

<tr><td height='26' background='http://icon.zol.com.cn/bbs/detail/1-1.jpg' class='bai12'><table width='98%' border='0' cellspacing='0' cellpadding='0'>

<tr>

<td align='left' style='padding-left:8px;color:#FFFFFF;'>

<a href='http://www.zol.com.cn/' target='top' style='COLOR: #ffffff'>首页</a> | <a href='http://bbs.zol.com.cn/' target='top' style='COLOR: #ffffff'>bbs首页</a> | <a href='http://v1.bbs.zol.com.cn/frmView.php' target='top' style='COLOR: #ffffff'>列表页</a> | <a href='http://group.zol.com.cn/' target='top' style='COLOR: #ffffff'>产品论坛</a> | <a href='http://blog.zol.com.cn/' target='top' style='COLOR: #ffffff'>博客</a> | <a href='http://play.zol.com.cn/' target='top' style='COLOR: #ffffff'>小游戏 </a> | <a href='http://dvd.tiant.com.cn/' target='top' style='COLOR: #ffffff'>电影 </a> | <a href='http://av.zol.com.cn/' target='top' style='COLOR: #ffffff'>囗囗囗 </a> | <a href='http://service.zol.com.cn/auction/' target='top' style='COLOR: #ffffff'>拍卖</a> | <a href='http://bbs.zol.com.cn/new/help/' target='top' style='COLOR: #ffffff'>新手入门</a>

</td>

<td align='right'>

</td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td align='center'><script language=JavaScript>

var flash_arr = new Array(2);

flash_arr[0]="<div id='leftup' style='position:relative; left:0; top:0; z-index:1;width:760;height:90;'><div style='position:absolute; z-index:2; width:760;height:90;top:0;left:0;'><a href='http://ad.doubleclick.net/clk;35697458;15307381;s?http://dellstorecn.sg.dell.com/public/default.jsp?c=cn&s=dhs&l=cn&rflag=AP&aflag=A&siteid=ZOLNB' target='_blank'><IMG SRC='http://pic.zol.com.cn/200611/a.gif' WIDTH=760 HEIGHT=90 BORDER=0></a></div><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='760' height='90'><param name='movie' value='http://pic.zol.com.cn/2006/dell233976090nb.swf'><param name='quality' value'high'><param name='wmode' value='Opaque'><embed src='http://pic.zol.com.cn/2006/dell233976090nb.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='760' height='90'></embed></object></div>";

flash_arr[1]="<div id='leftup' style='position:relative; left:0; top:0; z-index:1;width:760;height:90;'><div style='position:absolute; z-index:2; width:760;height:90;top:0;left:0;'><a href='http://ad.doubleclick.net/clk;35697626;15307381;p?http://dellstorecn.sg.dell.com/public/default.jsp?c=cn&s=dhs&l=cn&rflag=AP&aflag=A&siteid=ZOLDT' target='_blank'><IMG SRC='http://pic.zol.com.cn/200611/a.gif' WIDTH=760 HEIGHT=90 BORDER=0></a></div><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='760' height='90'><param name='movie' value='http://pic.zol.com.cn/2006/dell233976090pc.swf'><param name='quality' value'high'><param name='wmode' value='Opaque'><embed src='http://pic.zol.com.cn/2006/dell233976090pc.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='760' height='90'></embed></object></div>";

hi_now = new Date();

hi_id= hi_now.getSeconds() % 2;

document.write(flash_arr[hi_id]);

</script>

<span ID=ol_stat title="100emob"></span>

<span ID=ol_stat title='hpnbhome880'></span>

<img src="http://imp.zol.com.cn/imphit0001.gif?impid=nokia5300" width=0 height=0 border=0 style='display:none'>

<span ID=ol_stat title='hpnb76090'></span>

<img src="http://imp.zol.com.cn/imphit0001.gif?impid=intelcrzy" width=0 height=0 border=0 style='display:none'><span ID=ol_stat title='intelcrzy'></span>



<span ID=ol_stat title='hpnbcrz'></span>

<span ID=ol_stat title='hpcrz760'></span>

<span ID=ol_stat title='samnbhome880q1'></span>

<span ID=ol_stat title='samnbhome450q4'></span>

<span ID=ol_stat title='hppinthome120400'></span>

<span ID=ol_stat title='samdcdv760'></span>

<span ID=ol_stat title='samnb76060'></span>

<span ID=ol_stat title='samnb760j'></span>

<span ID=ol_stat title='hpnbnews88090'></span>

<span ID=ol_stat title='samlcd760n'></span>

<span ID=ol_stat title='samlcdhome450105'></span>

<span ID=ol_stat title='dasmnbhome450105'></span>

<span ID=ol_stat title='samlcdhome730'></span>

<span ID=ol_stat title='micewinhome88090'></span>

<span ID=ol_stat title='sampinthomeword'></span>

<span ID=ol_stat title='micvistabbs76090'></span>

<span ID=ol_stat title='micvastacrztop'></span>

<span ID=ol_stat title='micvistacrzbig'></span>

<span ID=ol_stat title='samnbhome73090'></span>

<span ID=ol_stat title='micvfbhome880'></span><div id="Float3922" style="position: absolute;visibility: visible;z-index: 1">

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100" height="100">

<param name="SRC" value="http://pic.zol.com.cn/200612/nokiabbs100n_1225.swf" />

</object>

<div style="width:100px;height:18px;background:#CCCCCC;text-align:right;line-height:18px;"><a href="#" target="_self" style="color:#000000;text-decoration:none;font-weight:bold" onClick="document.getElementById('Float3922').style.visibility='hidden';">关 闭</a>&nbsp;</div>

</div>

<script language="JavaScript" type="text/javascript">

window.screen.width>800 ? imgheight=120:imgheight=120;

function mymove3922(){

document.getElementById("Float3922").style.top=(document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight)-imgheight-50;

document.getElementById("Float3922").style.right=3+'px';

setTimeout("mymove3922();",50);

}

mymove3922();

</script><table width="730" border="0" align="center" cellpadding="0" cellspacing="0" height="92"><tr><td height="92" align="center"><iframe marginheight="0" marginwidth="0" frameborder="0" scrolling="no" width="728" height="90" src="http://pic.zol.com.cn/200702/googlebbs72890_0212.html"></iframe></td></tr></table>
<span ID=ol_stat title='nokiabbs100n'></span>

</td>

</tr>

</table></td>

</tr>

</table></td></tr>

</table></td></tr></table><table width='780' border='0' cellpadding='0' cellspacing='1' bgcolor='#698CC3' style='margin-top:2px;'>

<tr><td height='30' align='center' bgcolor='#FFFFFF'>

<table width='99%' border='0' cellpadding='0' cellspacing='0'>

<tr><td width='175' height='28' align='center' bgcolor='#F0F5FA'><a href='http://bbs.zol.com.cn/'><img src='http://bbs.zol.com.cn/new/images/detail/180.gif' alt='bbs.zol.com.cn' border=0></A></td>

<td width='388' align='left' bgcolor='#F0F5FA'><a href='http://bbs.zol.com.cn/' class='hei12b'>&nbsp;中关村在线论坛</a> <span class='hei12b'>-</span> <a href='http://v1.bbs.zol.com.cn/board_234.html' target='top' class='hei12b'>中国美女</a>&nbsp;点击数:<span id="book_hit_num"></span>&nbsp;<span ID="msg_zone"></span></TD>

<Td width=65 onmouseover="document.all.border_fun_div.style.display='';" onmouseout="document.all.border_fun_div.style.display='none';" align=right bgcolor="#F0F5FA">

[<span class="a_hei12">版主功能</span>]

</tD>

<td width=142 style="padding-right:17px;" align=center bgcolor="#F0F5FA">

[<a href="http://search.zol.com.cn/s/bbs/" class="a_hei12">搜索</A>]

[<a href="/new/insert_fav.php?book_id=52089&amp;board_id=234&amp;title=玲珑玉体" class="a_hei12">收藏</A>]

[<a href="/new/giveScore.php?board_id=234&amp;nId=52089" class="a_hei12">结帖</A>]

</td>

</tR>

<tr>

<td></TD><td></tD>

<td onmouseover="document.all.border_fun_div.style.display='';" onmouseout="document.all.border_fun_div.style.display='none';">

<div id="border_fun_div" style="width:65px;margin-left:0px;margin-top:0px;DISPLAY:none;POSITION: absolute;border:1px solid #000000;"><table width=65 bgcolor="#FFFFFF" align=center>

<tr>

<td style="border-bottom:1px dotted gray;"><a href="/new/setGood.php?boardid=234&amp;bookid=52089" class="a_hei12">版主加精</A></tD>

</tR>

<tr>

<td style="border-bottom:1px dotted gray;"><a href="http://bbs.zol.com.cn/new/setbook2.php?bookid=52089&amp;boardid=234&amp;type=upone" class="a_hei12">版主置顶</A></tD>

</tR>

<tr>

<td style="border-bottom:1px dotted gray;"><a href="http://bbs.zol.com.cn/new/setbook2.php?bookid=52089&amp;boardid=234&amp;type=cancleupone" class="a_hei12">取消置顶</A></tD>

</tR>

<tr>

<td><a href="http://bbs.zol.com.cn/new/tips/board_change.php?bookid=52089&amp;boardid=234" class="a_hei12">帖子转移</A></tD>

</tR>

</table></div>

</TD><td></tD>

</TR>

</table></td></tr>

</table><table width='780' style='margin-top:10px;'><tr><td align='center'><h1>玲珑玉体</h1></tD></tr></table><table width='780' cellspacing='0' cellpadding='0' style='margin:2px;'><tr><td width='81%' align='left'><span id='page_bar_top'></span></tD><td align=right height=20><a href='http://v1.bbs.zol.com.cn/frmView.php?u2=fb.php?nId=234' target='_blank'><img src=http://icon.zol.com.cn/bbs/detail/a18.gif border='0' alt='发帖'></a></td></tR></table><table width='780' border='0' cellpadding='0' cellspacing='0' class='borderlan' valign='top' style='margin-bottom:5px;'><tr><td><table cellspacing='1' cellpadding='0' width='100%' bgcolor='#ffffff' border='0'><tr><td colspan='2' align='center'><table cellspacing='1' cellpadding='0' width='100%' bgcolor='#698cc3' border='0'>
<tr><td class='bai12' align='center' background='http://icon.zol.com.cn/bbs/detail/1-1.jpg' height='26'><table cellspacing='0' cellpadding='0' width='98%' border='0'>
<tr><td align='left' ><span class='bai12b'>楼主</span>&nbsp;&nbsp;&nbsp; <span class='bai12'>07-02-10 19:35</span></td>
<td align='right'></td>
</tr>
</table></td></tr>
</table></td>
</tr><tr><td width='21%' height='30' align='center' bgcolor='#f2f5f9'><a href='http://blog.zol.com.cn/zxc2562361/' target='_blank' class='hei12b'>风雨飘飘</a></td>
<td width='79%' align='right' bgcolor='#F2F5F9'><table cellspacing='0' cellpadding='0' width='68%' border='0'>
<tr><td align='right'>[<a href='Javascript:apply_cimelia("234","52089","qq","气球");' class='a_hei12'>我要置顶</a>] <span id='add_ad'></span> &nbsp;&nbsp;悬赏分:200&nbsp;</td><td width='10'>&nbsp;</td></tr></table></td>
</tr><tr><td rowspan='2' align='center' valign='top' bgcolor='#f2f5f9'>
<table width='140' border='0' cellspacing='0' cellpadding='0'>
<tr><td height='6'></td></tr>
<tr><td align='center' style='border:0px solid #000000;padding:0px;'><a href='http://blog.zol.com.cn/zxc2562361/' target=_blank><img src='http://v1.bbs.zol.com.cn/user_photo/688/687820_s.jpg' alt='' style='border:1px solid #000000;'></A></td></tr>
<tr><td height='8'></td></tr>
</table>
<table width='82%' border='0' cellspacing='0' cellpadding='0'><tr><td height='20' align='left'><a href='http://photo.zol.com.cn/photo.php?userid=zxc2562361' target=_blank><img src='http://icon.zol.com.cn/bbs/detail/photo.jpg' border='0'></a>&nbsp;<a href='http://photo.zol.com.cn/photo.php?userid=zxc2562361' target=_blank class='a_hei12'>我的相册</a>&nbsp;<a href='http://v1.bbs.zol.com.cn/View_2.php?searchtype=userid&amp;searchid=1234&amp;searchKeys=zxc2562361' target=_blank class='a_hei12'>我的文章</a></td></tr><tr><td height='20' align='left'>武显将军(正二品)</td></tr>
<tr><td height='20' align='left'>能力值:755809</td></tr><tr><td height='20' align='left'>[<a href="http://v1.bbs.zol.com.cn/board_234.html" class='a_hei12'>中国美女</a>]版主</td></tr></table>
</td>
<td align='center' bgcolor='#F2F5F9'><table width='97%' border='0' cellspacing='0' cellpadding='0'>
<tr><td>&nbsp;</td></tr>
<tr><td colspan=2 valign='top' align='left' style='padding-top:5px;padding-left:5px;font:14px normal 宋体;line-height:25px;' height=185><BR><BR><a href=http://download.zol.com.cn/download_cate_picture/picture_page_1.html style=text-decoration:underline target=_blank>图片</a>: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_7e4b66f99595981.jpg');" src="http://img.com.tv/Mon_0702/214_184265_7e4b66f99595981.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_04f87d1cf28cc7c.jpg');" src="http://img.com.tv/Mon_0702/214_184265_04f87d1cf28cc7c.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_68078d4d65707e5.jpg');" src="http://img.com.tv/Mon_0702/214_184265_68078d4d65707e5.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_72ec3db6cdf8838.jpg');" src="http://img.com.tv/Mon_0702/214_184265_72ec3db6cdf8838.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_05d189654542b3b.jpg');" src="http://img.com.tv/Mon_0702/214_184265_05d189654542b3b.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_c5dc6ca39160306.jpg');" src="http://img.com.tv/Mon_0702/214_184265_c5dc6ca39160306.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_b4d229dfc710c51.jpg');" src="http://img.com.tv/Mon_0702/214_184265_b4d229dfc710c51.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_0b2c7d679373978.jpg');" src="http://img.com.tv/Mon_0702/214_184265_0b2c7d679373978.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_1c2ad807b52e97e.jpg');" src="http://img.com.tv/Mon_0702/214_184265_1c2ad807b52e97e.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_9a0ffd158a6ab07.jpg');" src="http://img.com.tv/Mon_0702/214_184265_9a0ffd158a6ab07.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_ec39e378f41b54c.jpg');" src="http://img.com.tv/Mon_0702/214_184265_ec39e378f41b54c.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_25ad9f37575f91f.jpg');" src="http://img.com.tv/Mon_0702/214_184265_25ad9f37575f91f.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_e3ed7a14a32702d.jpg');" src="http://img.com.tv/Mon_0702/214_184265_e3ed7a14a32702d.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_fd8a65bb90a9d8b.jpg');" src="http://img.com.tv/Mon_0702/214_184265_fd8a65bb90a9d8b.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_92c1366ee9a34b9.jpg');" src="http://img.com.tv/Mon_0702/214_184265_92c1366ee9a34b9.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_148ab8f9118027b.jpg');" src="http://img.com.tv/Mon_0702/214_184265_148ab8f9118027b.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_727bbe2e0e10efc.jpg');" src="http://img.com.tv/Mon_0702/214_184265_727bbe2e0e10efc.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_b1e0797fa429af7.jpg');" src="http://img.com.tv/Mon_0702/214_184265_b1e0797fa429af7.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_50004cc050e7771.jpg');" src="http://img.com.tv/Mon_0702/214_184265_50004cc050e7771.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_b5563252e2a0385.jpg');" src="http://img.com.tv/Mon_0702/214_184265_b5563252e2a0385.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_2c56b896a12ea16.jpg');" src="http://img.com.tv/Mon_0702/214_184265_2c56b896a12ea16.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_dacfa3ff31257eb.jpg');" src="http://img.com.tv/Mon_0702/214_184265_dacfa3ff31257eb.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_8f78f171fd60ba8.jpg');" src="http://img.com.tv/Mon_0702/214_184265_8f78f171fd60ba8.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_a00e1cb0ce8a4e2.jpg');" src="http://img.com.tv/Mon_0702/214_184265_a00e1cb0ce8a4e2.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_1ed0a9a3c7c949b.jpg');" src="http://img.com.tv/Mon_0702/214_184265_1ed0a9a3c7c949b.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"> <BR><BR>图片: <BR><IMG onclick="if(this.width>screen.width-461) window.open('http://img.com.tv/Mon_0702/214_184265_5c7d28e8324d325.jpg');" src="http://img.com.tv/Mon_0702/214_184265_5c7d28e8324d325.jpg" border=0 orig_onmouseout="null" orig_onmouseover="null"></td>
</tr>
<tr><td height='26'>&nbsp;</td></tr>
<tr><td align='left'><table width='97%' border='0' cellspacing='0' cellpadding='0'>
<tr><td align='center'>
<table bgcolor='#FFFFFF' style='border:1px solid #CCCCCC;'>
<tr><td style='padding-top:5px'>
<a href='http://photo.zol.com.cn/photo.php?userid=zxc2562361' target='_blank'><img src='http://img8.zol.com.cn/bbs/upload/70/69679_small.jpg' style='border:0px;' alt='楼主相册'></a>
</td></tr></table>
<table><tr><td height='24'><a href='http://photo.zol.com.cn/photo.php?userid=zxc2562361' target='_blank'>楼主相册</a></td></tr></table></td><td align='left' valign='top'><span class='hei14b'>楼主热贴 </span><BR>·<a href='http://v1.bbs.zol.com.cn/View_2.php?searchtype=userid&amp;searchid=1234&amp;searchKeys=zxc2562361&book_title=20%B6%E0%CB%EA%B5%C4%BB%A8%BC%BE%C9%D9%C5%AE&book_url=http%3A%2F%2Fbbs.zol.com.cn%2Findex20070211%2Findex_234_52113.html' target='_blank' class='a_hei14i'>20多岁的花季少女</a><br />·<a href='http://v1.bbs.zol.com.cn/View_2.php?searchtype=userid&amp;searchid=1234&amp;searchKeys=zxc2562361&book_title=%C7%AE%D3%A8%D0%B4%D5%E6&book_url=http%3A%2F%2Fbbs.zol.com.cn%2Findex20070210%2Findex_234_52093.html' target='_blank' class='a_hei14i'>钱莹写真</a><br />·<a href='http://v1.bbs.zol.com.cn/View_2.php?searchtype=userid&amp;searchid=1234&amp;searchKeys=zxc2562361&book_title=%D5%C5%B0%D8%D6%A5%C3%C0%CD%C8%A3%AB%CB%BF%CD%E0%A3%AC%BF%B4%BF%B4%C3%C0%B2%BB%C3%C0&book_url=http%3A%2F%2Fbbs.zol.com.cn%2Findex20070211%2Findex_234_52109.html' target='_blank' class='a_hei14i'>张柏芝美腿+囗囗,看看美不美</a><br />·<a href='http://v1.bbs.zol.com.cn/View_2.php?searchtype=userid&amp;searchid=1234&amp;searchKeys=zxc2562361' target='_blank' class='a_hei14i'>更多>></a> </td>
</tr>
</table></td>
</tr><tr><td>&nbsp;</td></tr>
</table></td>
</tr>
<tr><td width='97%' height='40' align='left' bgcolor='#F2F5F9' class='a_hui12' style='line-height:18px;'>&nbsp;&nbsp;让我们成为永远的网络朋友

<img border=0 onLoad="if(this.width > 500)this.width=500" src=\Documents and Settings\user_father\My Documents\My Pictures> </td></tr>
<tr><td height='50' align='left' bgcolor='#D2DEF2'>&nbsp;</td>
<td align='center' bgcolor='#D2DEF2'><table width='97%' border='0' cellspacing='0' cellpadding='0'>
<tr><td width='10%'><a href="javascript:reply_this('风雨飘飘','zxc2562361',0)" title='回复本楼'><img src='http://icon.zol.com.cn/bbs/detail/huifu.gif' width='51' height='21' border='0' /></a></td><td width='26%' align='left'><a href="javascript:message('zxc2562361')" title='给作者发送短消息'><img src='http://icon.zol.com.cn/bbs/detail/q_message.gif' width='62' height='21' border='0' /></a></td><td width='32%'>&nbsp;</td>
<td width='16%' onmouseover="show_table('boarder_0');" onmouseout="hidden_table('boarder_0');"><img src='http://icon.zol.com.cn/bbs/detail/boarder_c.gif' width='82' height='21' /></td>
<td width='16%' align='left' onmouseover="show_table('author_0');" onmouseout="hidden_table('author_0');" nowrap><img src='http://icon.zol.com.cn/bbs/detail/writer_c.gif' width='82' height='21' /></td>
</tr>
<tr>
<td width='10%'></td><td width='26%'></td><td width='32%'></td>
<td onmouseout="hidden_table('boarder_0');" onmouseover="show_table('boarder_0');">
<div id="boarder_0" style="background-color:#D2DEF2;line-height:16px;width:100px;border:1px solid #248ECC;display:none;POSITION: absolute;padding:4px;" >
<li style="color:#CC0000;">删除</li>
<li style="list-style-type:none;"><a href="#" onClick="if(window.confirm('确定要隐藏本楼吗?')) location.href='/new/setbook2.php?bookid=52089&amp;boardid=234&amp;type=del&amp;level=0&amp;nosend=1'" style="color:#000000">隐藏(不扣分)</a></li>
<li style="list-style-type:none;"><a href="/new/setbook2.php?bookid=52089&amp;boardid=234&amp;type=del&amp;level=0&otype=1" style="color:#000000">灌水(-100)</A></li>
<li style="list-style-type:none;"><a href="/new/setbook2.php?bookid=52089&amp;boardid=234&amp;type=del&amp;level=0&otype=2" style="color:#000000">骂人(-300)</a></li>
<li style="list-style-type:none;"><a href="/new/setbook2.php?bookid=52089&amp;boardid=234&amp;type=del&amp;level=0&otype=3" style="color:#000000">广告(-500)</a></li>
<li style="list-style-type:none;"><a href="/new/setbook2.php?bookid=52089&amp;boardid=234&amp;type=del&amp;level=0&otype=4" style="color:#000000">淫秽(-1000)</a></li>
</div>
</tD>
<td onmouseout="hidden_table('author_0');" onmouseover="show_table('author_0');">
<div id="author_0" style="background-color:#D2DEF2;line-height:16px;width:70px;border:1px solid #248ECC;display:none;POSITION: absolute;padding:4px;" >
<li><a href="/new/edit_article2.php?bookid=52089&amp;boardid=234" style="color:#000000">编辑</A></li>
<li><a href="#" onClick="if(window.confirm('确定要隐藏本楼吗?')) location.href='/new/setbook2.php?bookid=52089&amp;boardid=234&amp;type=del&amp;level=0&amp;nosend=1'" style="color:#000000">隐藏</a></li>
</div>
</tD>
</tr>
</table></td>
</tr></table></td></tr>
</table><span id="level_insert_table"></span><div align='center'><div class='top_head2'><table width='780' border='0' cellpadding='0' cellspacing='0' class='borderlan' valign='top'><tr><td><table cellspacing='1' cellpadding='0' width='100%' bgcolor='#ffffff' border='0'><tr><td colspan='2' align='center'><table cellspacing='1' cellpadding='0' width='100%' bgcolor='#698cc3' border='0'>

<tr><td class='bai12' align='center' background='http://icon.zol.com.cn/bbs/detail/1-1.jpg' height='26'><table cellspacing='0' cellpadding='0' width='98%' border='0'>

<tr><td align='left' ><a name='top1'></a><span class='bai12b'>1 楼</span>&nbsp;&nbsp;&nbsp; <span class='bai12'>07-02-12 14:22</span></td>

<td align='right'>&nbsp;</td>

</tr>

</table></td></tr>

</table></td>

</tR><tr><td width='21%' height='30' align='center' bgcolor='#f2f5f9'><a href='http://blog.zol.com.cn/feichang123/' target=_blank class='hei12b'>非常文杰</a></td>

<td width='79%' align='right' bgcolor='#F2F5F9'>&nbsp;</td></tr><tr><td rowspan='2' align='center' valign='top' bgcolor='#f2f5f9'>

<table width='140' border='0' cellspacing='0' cellpadding='0'>

<tr><td height='6'></td></tr>

<tr><td align='center' style='border:0px solid #000000;padding:0px;'><a href='http://blog.zol.com.cn/feichang123/' target=_blank><img src='http://icon.zol.com.cn/group/detail_images/zoler.jpg' alt='' style='border:1px solid #000000;'></A></td></tr>

<tr><td height='8'></td></tr>

</table>

<table width='82%' border='0' cellspacing='0' cellpadding='0'><tr><td height='20' align='left'><a href='http://v1.bbs.zol.com.cn/View_2.php?searchtype=userid&amp;searchid=1234&amp;searchKeys=feichang123' class='a_hei12' target='_blank'>我的文章</a></td></tr> <tr><td height='20' align='left'>进士</td></tr>

<tr><td height='20' align='left'>能力值:12590 </td></tr> </table>

</td>

<td align='center' bgcolor='#F2F5F9'><table width='97%' border='0' cellspacing='0' cellpadding='0'>

<tr><td>&nbsp;</td></tr>

<tr><td colspan=3 valign='top' align='left' style='padding-top:10px;padding-left:5px;font:14px normal 宋体;line-height:25px;' height=185>好好 好 喜欢亚 !!!!! </td>

</tr>

</table></td>

</tr><tr><td height='40' align='left' bgcolor='#F2F5F9' class='a_hui12'>&nbsp;&nbsp;</td></tr>

<tr><td height='50' align='left' bgcolor='#D2DEF2'>&nbsp;</td>

<td align='center' bgcolor='#D2DEF2'><table width='97%' border='0' cellspacing='0' cellpadding='0'>

<tr><td width='10%'><a href="javascript:reply_this('非常文杰','feichang123',1,'')" title='回复本楼'><img src='http://icon.zol.com.cn/bbs/detail/huifu.gif' width='51' height='21' border='0' /></a></td><td width='26%' align='left'><a href="javascript:message('feichang123')" title='给作者发送短消息'><img src='http://icon.zol.com.cn/bbs/detail/q_message.gif' width='62' height='21' border='0' /></a></td><td width='32%'>&nbsp;</td>

<td width='16%' onmouseover="show_table('boarder_1');" onmouseout="hidden_table('boarder_1');"><img src='http://icon.zol.com.cn/bbs/detail/boarder_c.gif' width='82' height='21' /></td>

<td width='16%' align='left' onmouseover="show_table('author_1');" onmouseout="hidden_table('author_1');" nowrap><img src='http://icon.zol.com.cn/bbs/detail/writer_c.gif' width='82' height='21' /></td>

</tr>

<tr>

<td width='10%'></td><td width='26%'></td><td width='32%'></td>

<td onmouseout="hidden_table('boarder_1');" onmouseover="show_table('boarder_1');">

<div id="boarder_1" style="background-color:#D2DEF2;line-height:16px;width:100px;border:1px solid #248ECC;display:none;POSITION: absolute;padding:4px;" >

<li style="color:#CC0000;">删除</li>

<li style="list-style-type:none;"><a href="#" onClick="if(window.confirm('确定要隐藏本楼吗?')) location.href='/new/setbook2.php?bookid=483736&amp;boardid=234&amp;type=del&amp;level=1&amp;nosend=1'" style="color:#000000">隐藏(不扣分)</a></li>

<li style="list-style-type:none;"><a href="/new/setbook2.php?bookid=483736&amp;boardid=234&amp;type=del&amp;level=1&otype=1" style="color:#000000">灌水(-100)</A></li>

<li style="list-style-type:none;"><a href="/new/setbook2.php?bookid=483736&amp;boardid=234&amp;type=del&amp;level=1&otype=2" style="color:#000000">骂人(-300)</a></li>

<li style="list-style-type:none;"><a href="/new/setbook2.php?bookid=483736&amp;boardid=234&amp;type=del&amp;level=1&otype=3" style="color:#000000">广告(-500)</a></li>

<li style="list-style-type:none;"><a href="/new/setbook2.php?bookid=483736&amp;boardid=234&amp;type=del&amp;level=1&otype=4" style="color:#000000">淫秽(-1000)</a></li>

</div>

</tD>

<td onmouseout="hidden_table('author_1');" onmouseover="show_table('author_1');">

<div id="author_1" style="background-color:#D2DEF2;line-height:16px;width:70px;border:1px solid #248ECC;display:none;POSITION: absolute;padding:4px;" >

<li><a href="/new/edit_reply2.php?bookid=483736&amp;boardid=234&amp;level=1" style="color:#000000">编辑</A></li>

<li><a href="#" onClick="if(window.confirm('确定要隐藏本楼吗?')) location.href='/new/setbook2.php?bookid=483736&amp;boardid=234&amp;type=del&amp;level=1&amp;nosend=1'" style="color:#000000">隐藏</a></li>

</div>

</tD>

</tr>

</table></td>

</tr></table></td></tr>

</table></div></div><a name='top_reply'></a><table width=780 cellspacing='0' cellpadding='0'><tr><td><span id='page_bar'></span></td></tR></table><table width='780' cellspacing='0' cellpadding='0' style='margin:2px;padding:2px;border:1px solid #698CC3'><tr><Td align=center>

</td></tR></table><FORM action='http://bbs.zol.com.cn/new/TopicView.php' method='POST' name='reply_form' enctype='multipart/form-data' onsubmit='return ckform(this)' style='margin:0px;padding:0px;' target=_top>

<input type=hidden value='52089' name='nId'>

<input type=hidden value='new' name='type'>

<input type=hidden value='1' name='refresh'>

<input type=hidden value='234' name='board_id'>

<input type='hidden' value='' name='reply_to_userid'>

<input type='hidden' value='' name='reply_info'>

<SCRIPT LANGUAGE='JavaScript' type='text/javascript'>

<!--

var zolid=readCookie('zol_userid');

if(0==zolid.length){

document.write('<table width=\'780\' border=\'0\' cellpadding=\'0\' cellspac[/code]


在这个里,我用这个来获取title里面的内容
代码:
 grep '\<title\>' 423.html|sed -n '1p'|cut -d'>' -f2|cut -d'<' -f1>testt.txt

注:我把文件保存在计算机里名为423.html


_________________
ubuntu是个好东西


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译