|
发表于 2005-5-24 14:41:16
|
显示全部楼层
比较菜 , 用的方法比较笨 , 不过还是能达到要求, 呵呵 你再改改 ..
[msphell@linux msphell]$ cat a
<a href="../../xcvcv.htm" Title="名字"><img src="http://photo.xx/dfsd/cc.jpg" border="1"></a>
<a href="../../../../xdsaf.htm" Title="名字"><img src="http://photo.xx/dfsd/cc.jpg" border="1"></a>
[msphell@linux msphell]$ sed 's/^<*.*src=\"//g' a|sed 's/" *.*>$//g'
http://photo.xx/dfsd/cc.jpg
http://photo.xx/dfsd/cc.jpg |
|