|
发表于 2003-11-12 22:39:52
|
显示全部楼层
[/home/javalee/myshell]cat tmp
<DT><A HREF="http://www.6bytes.com/meaculpa/index.html" ADD_DATE="1068055591"
LAST_VISIT="1068138006" LAST_CHARSET="GB2312">FreeBSD Basics</A>
<DT><A HREF="http://www.insecure.org/" ADD_DATE="1068179199" LAST_MODIFIED="1068223695" LAST_CHARSET="ISO-8859-1">Insecure.Org </A>
<DT><A HREF="http://www.hackerzhell.co.uk/portscanners.php" ADD_DATE="1068181322" LAST_VISIT="1068315472" ICON="http://www.hackerzhell.co.uk/favicon.ico"
LAST_CHARSET="ISO-8859-1">HackerzHell - For your security needs!</A>
<DT><A HREF="http://www.mostgraveconcern.com/freebsd/" ADD_DATE="1068226914" LAST_VISIT="1068616692" LAST_CHARSET="GB2312">FreeBSD Cheat Sheets</A>
和
</bookmark>
<bookmark icon="favicons/www.freebsdforum.org" href="http://www.freebsdforum.org/" >
<title>bsdforums.org - FreeBSD OpenBSD NetBSD Darwin Mac OSX Linux Unix forums, message boards, discussions
and news.</title>
</bookmark>
<bookmark icon="www" href="http://www.freebsdsearch.com/" >
<title>Welcome to FreeBSDSearch.com</title>
来个grep,awk,sed,tr命令的大集合吧~~~~~~笨了点儿,但好理解 ;)- [/home/javalee/myshell]cat tmp|tr '=' '\n'|grep 'www\.'|awk '{print $1}'|sed 's/"//g'
复制代码 结果:
http://www.6bytes.com/meaculpa/index.html
http://www.insecure.org/
http://www.hackerzhell.co.uk/portscanners.php
http://www.hackerzhell.co.uk/favicon.ico
http://www.mostgraveconcern.com/freebsd/
favicons/www.freebsdforum.org
http://www.freebsdforum.org/
http://www.freebsdsearch.com/ |
|