Prev: First Debian Installation: totally brain-dead. Where do I go from here?
Next: Booting in `user-mode' and entering in `maintenance' says `Login incorrect' but this is actually `Incorrect password' that should be said, as `root' is the maintenance user
From: Jozsi Avadkan on 3 Jul 2010 05:10 input: http://pastebin.com/raw.php?i=MqPXZwc3 output: http://pastebin.com/raw.php?i=8QCkp4yv it will be a long day.. :D could someone please help with it? i have to make a "one liner" that get's the input, and gives the mentioned output. -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/1278148046.4480.4.camel(a)localhost
From: Jozsi Avadkan on 3 Jul 2010 13:20 my own solution: http://pastebin.com/raw.php?i=kqQXCpD5 > input: > http://pastebin.com/raw.php?i=MqPXZwc3 > > output: > http://pastebin.com/raw.php?i=8QCkp4yv > > it will be a long day.. :D > > could someone please help with it? > > i have to make a "one liner" that get's the input, and gives the > mentioned output. > -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/1278177025.5667.4.camel(a)localhost
From: Gabor Heja on 3 Jul 2010 20:40 Hi! I have written a solution myself, but before replying your mail I noticed you needed a one-liner and have discarded my e-mail. Since your solution is not a real one-liner I tought I should send it anyway :) Here it is: http://www.pastebin.org/379120 The output differs a bit (and two lines might be wrong in the original output), the extraction of the title is ugly, but it may fit your needs. Regards, Gabor PS: Egy helyen elfelejtetted lecserélni a bazdmeg.html-t :) On Sat, 03 Jul 2010 19:10:25 +0200, Jozsi Avadkan <jozsi.avadkan(a)gmail.com> wrote: > my own solution: http://pastebin.com/raw.php?i=kqQXCpD5 > >> input: >> http://pastebin.com/raw.php?i=MqPXZwc3 >> >> output: >> http://pastebin.com/raw.php?i=8QCkp4yv >> >> it will be a long day.. :D >> >> could someone please help with it? >> >> i have to make a "one liner" that get's the input, and gives the >> mentioned output. >> > > > -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/b171c114f4f1eae5f9a06a3832f134e2(a)localhost
From: Richard Hector on 6 Jul 2010 06:30
On Sat, 2010-07-03 at 11:07 +0200, Jozsi Avadkan wrote: > input: > http://pastebin.com/raw.php?i=MqPXZwc3 > > output: > http://pastebin.com/raw.php?i=8QCkp4yv Just for fun: perl -ne 'm{^(([^/]*).*/([^/]*).html)}; exit unless defined($2); if ($d ne $2){defined($d) && print "<br>\n"; $d = $2; print "<br><font size=4>$d</font><br>\n";} print qq{<a href="$1">$3</a> | \n};' < input > output Some tweaks required depending on whether you do or don't want trailing |'s and/or trailing spaces, and I agree there are 2 entries in your sample output that don't match :-) Richard -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/1278411378.30144.7.camel(a)diamond.lan.walnut.gen.nz |