Re: text to html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

OLD_FOO=DUMMY

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

   print HREF line

   OLD_FOO=foo
endfor
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux