On 7/31/05, Alexander Dalloz <ad+lists(a)uni-x.org> wrote:
...
sed 's|^http://\(.*\)/|<a
href="\1">\1</a>|g; s|href="|href="http://|g'
linklist.txt > clicklist.txt
Alexander
Thanks, Alexander. I did:
[thufir@arrakis click]$
[thufir@arrakis click]$
[thufir@arrakis click]$
[thufir@arrakis click]$ date
Sun Jul 31 15:41:46 IST 2005
[thufir@arrakis click]$ pwd
/home/thufir/click
[thufir@arrakis click]$ ll
total 24
-rw-rw-r-- 1 thufir thufir 5366 Jul 31 08:37 clicklist.txt
-rw-rw-r-- 1 thufir thufir 5366 Jul 31 15:38 clicklist.txt.backup
[thufir@arrakis click]$ sed 's|^http://\(.*\)/|<a
href="\1">\1</a>|g;
s|href="|href="http://|g'
linklist.txt > clicklist.txt
[thufir@arrakis click]$
about how long should this take? I gave the command 60 seconds and
hit ctrl-c to cancel it. examining clicklist.txt shows no change.
Aha, I might've provided faulty data. The links aren't all of the form
http://www.foo.com/
but more like
http://ipac3.vpl.ca/ipac20/ipac.jsp?uri=full=3100001~!1221436~!17&ri=...
is that the problem?
Thanks,
Thufir