Re: <link> not clickable from text document

From: Thomas Springer (th.springer_at_gmx.net)
Date: 07/31/05

  • Next message: taharka: "Re: Our (US) $s at work."
    Date: Sun, 31 Jul 2005 19:00:48 +0200
    To: jvian10@charter.net, For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    Hello,

    On Sun, 31 Jul 2005 10:40:05 -0500
    Jeff Vian wrote:

    > > Alexander Dalloz wrote:
    > > ...
    > > > sed 's|^http://\(.*\)/|\1|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.
    >

    I think you do understand, now.

    > >
    > > 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://\(.*\)/|\1|
    > > g; s|href="|href="http://|g'
    > >
    > > linklist.txt > clicklist.txt
    > >
    > >
    > > 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=...
    > >
    > > is that the problem?
    > >
    > >
    > > Thanks,
    > >
    > > Thufir
    > >

    Try this:

    $ sed 's|^http://\(.*/\)\(.*\)|\1|g; s|href="|
    href="http://|g' /input/file/with/links > /output/file/with/clicklinks

    It's minimal changed from the first example, which didn't things well
    when i tried it out with your uri.

    Thomas

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: taharka: "Re: Our (US) $s at work."

    Relevant Pages

    • Re: cmd problem
      ... Panel>add/remove programs/add utilities from my XP disk. ... Try this command, but change the X: ... Can't open input file: filename. ...
      (microsoft.public.windowsxp.basics)
    • Re: findstr, for, or other command to do this?
      ... >> thoughout the file. ... >> command gets me close but its not a unique list. ... > Input file in.txt: ... > REM Parse thru the sorted temp file and compare each ...
      (microsoft.public.win2000.cmdprompt.admin)
    • Re: Nero AAC encoder front-end
      ... I think this is actually an issue with Nero and Windows ME, ... I can't seem to get it to work from the command line either, ... You could try some older Nero encoder and decoder files if the ... I even put the executable in the same folder as the input file 003.wav ...
      (alt.radio.digital)
    • Re: Nero AAC encoder front-end
      ... The command prompt window simply opened and then immediately closed ... I think this is actually an issue with Nero and Windows ME, ... You could try some older Nero encoder and decoder files if the latest ones aren't working with ME. ... I even put the executable in the same folder as the input file 003.wav and ran a batch file containing the following commands. ...
      (alt.radio.digital)
    • Re: opening existing files with OPEN()
      ... was getting the program to read this format correctly. ... Command Prompt, I see both the executable AND the input file when I do ... no matching symbolic information found. ...
      (comp.lang.fortran)