-2
我有一個links.txt。我需要這個輸出。grep命令 - 文本處理
links.txt:
http://www.google.com/test
https://bing.com/web2
www.yahoo.com/link/link2
output.txt的
<a href="http://www.google.com/test" target="_blank">http://www.google.com/test</a>
<a href="https://bing.com/web2" target="_blank">https://bing.com/web2</a>
<a href="www.yahoo.com/link/link2" target="_blank">www.yahoo.com/link/link2</a>
用sed ... .......... – 2014-09-25 04:17:16