text to html

Kwan Lowe kwan at digitalhermit.com
Sat Jul 3 10:28:47 UTC 2010

On Sat, Jul 3, 2010 at 5:07 AM, Jozsi Avadkan <jozsi.avadkan at gmail.com> wrote:
> 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.

It's a rather simple bash script, but not a one-liner unless you don't
count semicolons..

In p-code:


for each line in the input file
   IF FOO != OLD_FOO print a header

   print HREF line


More information about the users mailing list