Re: text to html

2010-07-06 Thread Richard Hector
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 "\n"; $d = $2; print "$

Re: text to html

2010-07-03 Thread Gabor Heja
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 m

Re: text to html

2010-07-03 Thread Jozsi Avadkan
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