From hawat.thufir at gmail.com Fri Jun 5 15:07:25 2015 Content-Type: multipart/mixed; boundary="===============0689076926278779934==" MIME-Version: 1.0 From: Thufir To: users at lists.fedoraproject.org Subject: not clickable from text document Date: Sun, 31 Jul 2005 08:31:21 +0100 Message-ID: --===============0689076926278779934== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable I have many, many, many links like: http://www.foo.com/ http://www.bar.com/ with one per line, in a text file. is there a simple way to convert that to foo or something similar, so that the links are "clickable" in mozilla? It's not a html question per se, or maybe it is, I dunno :) I imagine that a script could do it, but I don't know how to write a script (at least nothing like that). Any thoughts? Actually, I always found it annoying that microsoft word makes links clickable whether you want that or not. Hey, maybe I found a use for that "feature" :) Thanks, Thufir --===============0689076926278779934==-- From _fedoralist_ at cajuninc.com Fri Jun 5 15:07:25 2015 Content-Type: multipart/mixed; boundary="===============0072418170067275356==" MIME-Version: 1.0 From: M. Lewis <_fedoralist_ at cajuninc.com> To: users at lists.fedoraproject.org Subject: Re: not clickable from text document Date: Sun, 31 Jul 2005 02:54:13 -0500 Message-ID: <42EC83A5.5030108@cajuninc.com> In-Reply-To: bf6b6d5c0507310031799688fa@mail.gmail.com --===============0072418170067275356== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable THUFIR HAWAT wrote: > I have many, many, many links like: > = > http://www.foo.com/ > http://www.bar.com/ > = > with one per line, in a text file. is there a simple way to convert that= to > = > = > foo > = > or something similar, so that the links are "clickable" in mozilla? > = > It's not a html question per se, or maybe it is, I dunno :) > = > = > I imagine that a script could do it, but I don't know how to write a > script (at least nothing like that). > = > = > Any thoughts? > = > = > Actually, I always found it annoying that microsoft word makes links > clickable whether you want that or not. Hey, maybe I found a use for > that "feature" :) > = > = > = > = > = > Thanks, > = > Thufir > = Thufir, I'm not certain that I completely understand your question. From what I understand, this would be very simple to do with a short = perl script. If this is indeed what you'd like to do, mail me off-list and I will = help you with it. Thanks, Mike --===============0072418170067275356==-- From akonstam at trinity.edu Fri Jun 5 15:07:26 2015 Content-Type: multipart/mixed; boundary="===============7294464588337434817==" MIME-Version: 1.0 From: akonstam at trinity.edu To: users at lists.fedoraproject.org Subject: Re: not clickable from text document Date: Sun, 31 Jul 2005 08:52:36 -0500 Message-ID: <20050731135236.GA5064@Moof.cs.trinity.edu> In-Reply-To: bf6b6d5c0507310031799688fa@mail.gmail.com --===============7294464588337434817== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Sun, Jul 31, 2005 at 08:31:21AM +0100, THUFIR HAWAT wrote: > I have many, many, many links like: > = > http://www.foo.com/ > http://www.bar.com/ > = > with one per line, in a text file. is there a simple way to convert that= to > = > = > foo > = > or something similar, so that the links are "clickable" in mozilla? > = > It's not a html question per se, or maybe it is, I dunno :) > = > = > I imagine that a script could do it, but I don't know how to write a > script (at least nothing like that). > = > = > Any thoughts? > = > = > Actually, I always found it annoying that microsoft word makes links > clickable whether you want that or not. Hey, maybe I found a use for > that "feature" :) > = This may not be what you what but if you copy the text into an open office document they will be clickable links. -- = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Life is a whim of several billion cells to be you for a while. ------------------------------------------- Aaron Konstam Computer Science Trinity University telephone: (210)-999-7484 --===============7294464588337434817==-- From ad+lists at uni-x.org Fri Jun 5 15:07:26 2015 Content-Type: multipart/mixed; boundary="===============6954890117181005291==" MIME-Version: 1.0 From: Alexander Dalloz To: users at lists.fedoraproject.org Subject: Re: not clickable from text document Date: Sun, 31 Jul 2005 15:57:44 +0200 Message-ID: <1122818264.21238.176.camel@serendipity.dogma.lan> In-Reply-To: bf6b6d5c0507310031799688fa@mail.gmail.com --===============6954890117181005291== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Am So, den 31.07.2005 schrieb THUFIR HAWAT um 9:31: > I have many, many, many links like: > = > http://www.foo.com/ > http://www.bar.com/ > = > with one per line, in a text file. is there a simple way to convert that= to > foo > Thufir sed 's|^http://\(.*\)/|\1|g; s|href=3D"|href=3D"http://|= g' linklist.txt > clicklist.txt Alexander -- = Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773 legal statement: http://www.uni-x.org/legal.html Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp = Serendipity 15:53:57 up 15 days, 20:26, load average: 0.42, 0.16, 0.11=20 --===============6954890117181005291== Content-Type: application/pgp-signature MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjEuMi40IChHTlUv TGludXgpCgppRDhEQlFCQzdOallFRUc2bGJObXAzTVJBb2ZZQUo5UlhuWUNEc2NKaFlGWHdSZXVa TG5OZVlRZ1J3Q2dzNmpXCktIcjl0alBhYlJ0RENQd25JS0JNbEVVPQo9RjZVbgotLS0tLUVORCBQ R1AgU0lHTkFUVVJFLS0tLS0K --===============6954890117181005291==-- From hawat.thufir at gmail.com Fri Jun 5 15:07:27 2015 Content-Type: multipart/mixed; boundary="===============0477006488644977494==" MIME-Version: 1.0 From: Thufir To: users at lists.fedoraproject.org Subject: Re: not clickable from text document Date: Sun, 31 Jul 2005 15:47:17 +0100 Message-ID: In-Reply-To: 1122818264.21238.176.camel@serendipity.dogma.lan --===============0477006488644977494== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 7/31/05, Alexander Dalloz wrote: ... > sed 's|^http://\(.*\)/|\1|g; s|href=3D"|href=3D"http:/= /|g' > linklist.txt > clicklist.txt > = > Alexander Thanks, Alexander. I did: [thufir(a)arrakis click]$ [thufir(a)arrakis click]$ [thufir(a)arrakis click]$ [thufir(a)arrakis click]$ date Sun Jul 31 15:41:46 IST 2005 [thufir(a)arrakis click]$ pwd /home/thufir/click [thufir(a)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(a)arrakis click]$ sed 's|^http://\(.*\)/|\1|g; s|href=3D"|href=3D"http://|g' linklist.txt > clicklist.txt [thufir(a)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=3Dfull=3D3100001~!1221436~!17&ri=3D= 42&aspect=3Dbasic_search&menu=3Dsearch&source=3D~!horizon&profile=3Dpac is that the problem? Thanks, Thufir --===============0477006488644977494==-- From jvian10 at charter.net Fri Jun 5 15:07:27 2015 Content-Type: multipart/mixed; boundary="===============0683360848112320263==" MIME-Version: 1.0 From: Jeff Vian To: users at lists.fedoraproject.org Subject: Re: not clickable from text document Date: Sun, 31 Jul 2005 10:40:05 -0500 Message-ID: <1122824405.29724.4.camel@eye_gore.lab.net> In-Reply-To: bf6b6d5c0507310747584182cf@mail.gmail.com --===============0683360848112320263== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Sun, 2005-07-31 at 15:47 +0100, THUFIR HAWAT wrote: > On 7/31/05, Alexander Dalloz wrote: > ... > > sed 's|^http://\(.*\)/|\1|g; s|href=3D"|href=3D"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(a)arrakis click]$ > [thufir(a)arrakis click]$ > [thufir(a)arrakis click]$ > [thufir(a)arrakis click]$ date > Sun Jul 31 15:41:46 IST 2005 > [thufir(a)arrakis click]$ pwd > /home/thufir/click > [thufir(a)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(a)arrakis click]$ sed 's|^http://\(.*\)/|\1|g; > s|href=3D"|href=3D"http://|g' > = > linklist.txt > clicklist.txt > = > [thufir(a)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=3Dfull=3D3100001~!1221436~!17&ri= =3D42&aspect=3Dbasic_search&menu=3Dsearch&source=3D~!horizon&profile=3Dpac > = > = > = > is that the problem? > = > = > = > = > Thanks, > = > Thufir > = --===============0683360848112320263==-- From th.springer at gmx.net Fri Jun 5 15:07:28 2015 Content-Type: multipart/mixed; boundary="===============3438013001968695484==" MIME-Version: 1.0 From: Thomas Springer To: users at lists.fedoraproject.org Subject: Re: not clickable from text document Date: Sun, 31 Jul 2005 19:00:48 +0200 Message-ID: <20050731190048.117bb194@qpo.wrx.int> In-Reply-To: 1122824405.29724.4.camel@eye_gore.lab.net --===============3438013001968695484== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hello, On Sun, 31 Jul 2005 10:40:05 -0500 Jeff Vian wrote: > > Alexander Dalloz wrote: > > ... > > > sed 's|^http://\(.*\)/|\1|g; s|href=3D"| > > > href=3D"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(a)arrakis click]$ > > [thufir(a)arrakis click]$ > > [thufir(a)arrakis click]$ > > [thufir(a)arrakis click]$ date > > Sun Jul 31 15:41:46 IST 2005 > > [thufir(a)arrakis click]$ pwd > > /home/thufir/click > > [thufir(a)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(a)arrakis click]$ sed 's|^http://\(.*\)/|\1| > > g; s|href=3D"|href=3D"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=3D... > > = > > is that the problem? > > = > > = > > Thanks, > > = > > Thufir > > = Try this: $ sed 's|^http://\(.*/\)\(.*\)|\1|g; s|href=3D"| href=3D"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 --===============3438013001968695484==-- From hawat.thufir at gmail.com Fri Jun 5 15:07:29 2015 Content-Type: multipart/mixed; boundary="===============7297200621840349719==" MIME-Version: 1.0 From: Thufir To: users at lists.fedoraproject.org Subject: Re: not clickable from text document Date: Sun, 31 Jul 2005 21:50:15 +0100 Message-ID: In-Reply-To: 20050731190048.117bb194@qpo.wrx.int --===============7297200621840349719== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 7/31/05, Thomas Springer wrote: ... > Try this: > = > $ sed 's|^http://\(.*/\)\(.*\)|\1|g; s|href=3D"| > href=3D"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 ... Sorry that I didn't notice that sed was using input and output files, = should've seen that. I made a dummy with just one link to test the sed command. The link is entirely on one line, where as if I were to paste it here then it would wrap, I'm not sure if that's relevant. Here's the link in dumm.txt, wrapped: [thufir(a)arrakis click]$ [thufir(a)arrakis click]$ date Sun Jul 31 21:26:23 IST 2005 [thufir(a)arrakis click]$ pwd /home/thufir/click [thufir(a)arrakis click]$ ll total 36 -rw-rw-r-- 1 thufir thufir 0 Jul 31 21:26 clicklist.txt -rw-rw-r-- 1 thufir thufir 95 Jul 31 21:26 dummy.txt -rw-rw-r-- 1 thufir thufir 5366 Jul 31 08:37 linklist.txt -rw-rw-r-- 1 thufir thufir 5366 Jul 31 15:38 linklist.txt.backup [thufir(a)arrakis click]$ cat dummy.txt http://ipac3.vpl.ca/ipac20/ipac.jsp?uri=3Dfull=3D3100001~!1150206~!25&ri=3D= 4&aspect=3Dbasic_search$ [thufir(a)arrakis click]$ sed 's|^http://\(.*/\)\(.*\)|\1|g; s|href=3D"| href=3D"http://|g' dummy.txt > clicklist.txt sed: -e expression #1, char 58: unterminated `s' command [thufir(a)arrakis click]$ I opened "dummy.txt" from openoffice and the link wasn't clickable, but I do notice that if I were to e-mail these to myself that they become clickable from gmail. Still, I'd like to get the sed command working, partly out of curiousity. Thanks, Thufir --===============7297200621840349719==-- From veguilla at gmail.com Fri Jun 5 15:07:30 2015 Content-Type: multipart/mixed; boundary="===============6350797806402373643==" MIME-Version: 1.0 From: Ricardo Veguilla To: users at lists.fedoraproject.org Subject: Re: not clickable from text document Date: Sun, 31 Jul 2005 17:09:25 -0400 Message-ID: <1122844165.30583.22.camel@localhost.localdomain> In-Reply-To: bf6b6d5c0507310031799688fa@mail.gmail.com --===============6350797806402373643== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Sun, 2005-07-31 at 08:31 +0100, THUFIR HAWAT wrote: > I have many, many, many links like: > = > http://www.foo.com/ > http://www.bar.com/ > = > with one per line, in a text file. is there a simple way to convert that= to > = > = > foo > = > or something similar, so that the links are "clickable" in mozilla? > = If you use firefox, you can install the Linkification extensions which does exactly what you want. After installing it, just open the text.file in firefox and all the URLs will be clickable. Linkification: Converts text links into geniune, clickable links. https://addons.mozilla.org/extensions/moreinfo.php?id=3D190 -- = Ricardo Veguilla --===============6350797806402373643==-- From ad+lists at uni-x.org Fri Jun 5 15:07:30 2015 Content-Type: multipart/mixed; boundary="===============2166601212052340947==" MIME-Version: 1.0 From: Alexander Dalloz To: users at lists.fedoraproject.org Subject: Re: not clickable from text document Date: Sun, 31 Jul 2005 23:30:10 +0200 Message-ID: <1122845410.21238.210.camel@serendipity.dogma.lan> In-Reply-To: bf6b6d5c05073113507065250b@mail.gmail.com --===============2166601212052340947== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Am So, den 31.07.2005 schrieb THUFIR HAWAT um 22:50: > [thufir(a)arrakis click]$ cat dummy.txt > http://ipac3.vpl.ca/ipac20/ipac.jsp?uri=3Dfull=3D3100001~!1150206~!25&ri= =3D4&aspect=3Dbasic_search$ > [thufir(a)arrakis click]$ sed 's|^http://\(.*/\)\(.*\)| href=3D"\1\2">\1|g; s|href=3D"| > href=3D"http://|g' dummy.txt > clicklist.txt > sed: -e expression #1, char 58: unterminated `s' command > [thufir(a)arrakis click]$ What you show here can't be what you really entered. Do not wrap lines. The sed command is one single line. > Thufir Alexander -- = Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773 legal statement: http://www.uni-x.org/legal.html Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp = Serendipity 23:24:07 up 16 days, 3:56, load average: 0.15, 0.23, 0.30=20 --===============2166601212052340947== Content-Type: application/pgp-signature MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjEuMi40IChHTlUv TGludXgpCgppRDhEQlFCQzdVTGlFRUc2bGJObXAzTVJBdi9SQUo5VjRQUnBSa0xEcmlHOENoSUd3 dlFHY2R1SHJBQ2RIWlJvCk0xSDBzNE9xRHR6WWlDNFVndUpNOEZZPQo9SFRTbQotLS0tLUVORCBQ R1AgU0lHTkFUVVJFLS0tLS0K --===============2166601212052340947==-- From th.springer at gmx.net Fri Jun 5 15:07:30 2015 Content-Type: multipart/mixed; boundary="===============6781058354393454169==" MIME-Version: 1.0 From: Thomas Springer To: users at lists.fedoraproject.org Subject: Re: not clickable from text document Date: Mon, 01 Aug 2005 00:06:22 +0200 Message-ID: <20050801000622.45f45831@qpo.wrx.int> In-Reply-To: bf6b6d5c05073113507065250b@mail.gmail.com --===============6781058354393454169== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Sun, 31 Jul 2005 21:50:15 +0100 THUFIR HAWAT wrote: > On 7/31/05, Thomas Springer wrote: > ... > > Try this: > > = > > $ sed 's|^http://\(.*/\)\(.*\)|\1|g; s|href=3D"| > > href=3D"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 > ... > = > Sorry that I didn't notice that sed was using input and output files, = > should've seen that. > = > I made a dummy with just one link to test the sed command. The link > is entirely on one line, where as if I were to paste it here then it > would wrap, I'm not sure if that's relevant. > = > Here's the link in dumm.txt, wrapped: > = > > = > = > [thufir(a)arrakis click]$ date > Sun Jul 31 21:26:23 IST 2005 > [thufir(a)arrakis click]$ pwd > /home/thufir/click > [thufir(a)arrakis click]$ ll > total 36 > -rw-rw-r-- 1 thufir thufir 0 Jul 31 21:26 clicklist.txt > -rw-rw-r-- 1 thufir thufir 95 Jul 31 21:26 dummy.txt > -rw-rw-r-- 1 thufir thufir 5366 Jul 31 08:37 linklist.txt > -rw-rw-r-- 1 thufir thufir 5366 Jul 31 15:38 linklist.txt.backup > [thufir(a)arrakis click]$ cat dummy.txt > http://ipac3.vpl.ca/ipac20/ipac.jsp?uri=3Dfull=3D3100001~!1150206~!25&ri= =3D4&aspect=3Dbasic_search$ > = > = > [thufir(a)arrakis click]$ sed 's|^http://\(.*/\)\(.*\)| href=3D"\1\2">\1|g; s|href=3D"| > href=3D"http://|g' dummy.txt > clicklist.txt > sed: -e expression #1, char 58: unterminated `s' command > [thufir(a)arrakis click]$ > = > = > = > I opened "dummy.txt" from openoffice and the link wasn't clickable, > but I do notice that if I were to e-mail these to myself that they > become clickable from gmail. Still, I'd like to get the sed command > working, partly out of curiousity. > = > = > Thanks, > = > Thufir > It goes like this, = $ sed 's|^http://\(.*/\)\(.*\)|\1|g; > s|href=3D"| href=3D"http://|g' dummy.txt > clicklist.txt $ echo $? 0 $ cat clicklist.txt ipac3.vpl.ca/ipac20/ Sorry,I can't see why it doesn't work for you. Try again, or use the file which comes with this message. * Save, * make it executable, then * ./clinks.sh inputfile > outputfile Thomas --===============6781058354393454169== Content-Type: application/x-sh MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="clinks.sh" IyEvYmluL2Jhc2gKc2VkICdzfF5odHRwOi8vXCguKi9cKVwoLipcKXw8YSBocmVmPSJcMVwyIj5c MTwvYT58Zzsgc3xocmVmPSJ8aHJlZj0iaHR0cDovL3xnJyAkMSA+ICQyCg== --===============6781058354393454169==--