[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: <link> not clickable from text document



On Sun, 2005-07-31 at 15:47 +0100, THUFIR HAWAT wrote:
> On 7/31/05, Alexander Dalloz <ad+lists uni-x org> wrote:
> ...
> > sed 's|^http://\(.*\)/|<a href="\1">\1</a>|g; s|href="|href="http://|g'
> > linklist.txt > clicklist.txt
> > 
     ^^^^^^^^^^    ^^^^^^^^^^^^

Note that Alexander gave you (examples of) an input file and an output
file that are different.  You will need to use 2 different filenames for
sed to work. The input file must exist, the output file will be created.

In your command below, the input file does not exist so it cannot
perform the task.  This is seen in the output of your 'll' command.

> > 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=42&aspect=basic_search&menu=search&source=~!horizon&profile=pac
> 
> 
> 
> is that the problem?
> 
> 
> 
> 
> Thanks,
> 
> Thufir
> 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]